فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(A03): upgrade schema-version assertions to IndexedDB v7
davoodmehraban89 committed
Oct 14, 2026 at 23:24 UTC
83d8c99e934f5239afa9940ef001c429bfb1a4e8
1 file changed
+2
-2
tests/backup-restore-integration.test.mjs
+2
-2
@@ -22,7 +22,7 @@ test('A04: an actual IndexedDB company backup round-trip restores records', asyn
22
await StorageService.put('contacts', { id: 'customer-2', companyId: 'c2', name: 'Other company' });
23
const backup = await SettingsController.exportBackup();
24
assert.equal(backup.scope, 'company');
25
- assert.equal(backup.schemaVersion, 6);
25
+ assert.equal(backup.schemaVersion, 7);
26
await StorageService.delete('contacts', 'customer-1');
27
assert.equal(await StorageService.get('contacts', 'customer-1'), undefined);
28
const result = await SettingsController.importBackup(JSON.stringify(backup));
@@ -38,7 +38,7 @@ test('A04: malformed or future company backup envelopes never modify IndexedDB',
38
{ ...example, app: 'unknown' },
39
{ ...example, app: undefined },
40
{ ...example, scope: 'global' },
41
- { ...example, schemaVersion: 7 },
41
+ { ...example, schemaVersion: 8 },
42
{ ...example, schemaVersion: '6' },
43
{ ...example, schemaVersion: undefined },
44
{ ...example, companyId: '' },