test(mobile): the backup-code download revokes its URL after the shared delay

The mobile twin of the AccountTab test still expected the object URL to be
revoked in the same tick. Since both screens download through downloadBlob,
the revoke happens after its 100 ms grace period.
This commit is contained in:
Maurice
2026-09-24 13:22:49 +02:00
parent 9a69b092e8
commit 601ed66a38
@@ -634,7 +634,7 @@ describe('MSettingsAccount – backup codes', () => {
expect(createObjectURL).toHaveBeenCalledWith(expect.any(Blob));
expect(downloadName).toBe('trek-mfa-backup-codes.txt');
expect(revokeObjectURL).toHaveBeenCalledWith('blob:codes');
await waitFor(() => expect(revokeObjectURL).toHaveBeenCalledWith('blob:codes'));
expect(document.querySelector('a[download]')).toBeNull();
createObjectURL.mockRestore();