fix(startup): restore keychain consent barrier

This commit is contained in:
NimBold
2026-07-15 21:09:45 +03:30
parent 6e6ae51395
commit d2479f52be
7 changed files with 67 additions and 20 deletions
+15 -2
View File
@@ -14,10 +14,23 @@ describe('download progress size display', () => {
totalIsEstimate: true,
fallbackSize: 'Unknown'
})).toEqual({
downloaded: '1.20 GB',
total: '2.40 GB',
downloaded: '1.20',
total: '2.40',
unit: 'GB',
totalIsEstimate: true,
fallback: 'Unknown'
});
});
it('converts downloaded bytes into the total size unit', () => {
expect(resolveDownloadSizeDisplay({
downloadedBytes: 512 * 1024 ** 2,
totalBytes: 2 * 1024 ** 3,
fallbackSize: '2 GB'
})).toMatchObject({
downloaded: '0.50',
total: '2.00',
unit: 'GB'
});
});
});