فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

test(backup): reject malformed array payloads

davoodmehraban89 committed Oct 14, 2026 at 11:13 UTC d71aa95f37bee135b29d81b2f4f8565de647422f
1 file changed +4
tests/backup-version-validation.test.mjs
+4
@@ -17,3 +17,7 @@ test('backup import rejects an unrelated application before database access', as
17 /فینورا پرو/
18 );
19 });
20 +
21 +test('backup import rejects array-shaped payloads', async () => {
22 + await assert.rejects(StorageService.importAll({ app: 'Factor-easyPro', version: 6, data: [] }), /فرمت فایل نامعتبر/);
23 +});