fix: update check for desktop app

This commit is contained in:
Bohdan Triapitsyn
2026-07-15 14:02:12 +03:00
parent 00e002413d
commit 53d2dde87a
4 changed files with 44 additions and 5 deletions
@@ -134,11 +134,19 @@ describe('checkForUpdates', () => {
const result = await checkForUpdates({
appType: 'desktop-electron',
currentVersion: '1.9.10',
installId: '4f4dfead-9688-4c4f-97d7-4607fbbfc3ab',
platform: 'windows',
arch: 'arm64',
});
expect(result.available).toBe(true);
expect(result.version).toBe('1.10.0');
expect(fetchMock).toHaveBeenCalledTimes(1);
expect(JSON.parse(fetchMock.mock.calls[0][1].body)).toMatchObject({
installId: '4f4dfead-9688-4c4f-97d7-4607fbbfc3ab',
platform: 'windows',
arch: 'arm64',
});
});
it('resolves an Android APK asset when the update API returns an AAB', async () => {