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

test(A07): verify Excel is packaged locally but not imported during startup

davoodmehraban89 committed Oct 15, 2026 at 21:00 UTC ac0cd266878f7c54be2b87080568e5b41a613835
1 file changed +3 -1
tests/a07-offline-bundled-assets.test.mjs
+3 -1
@@ -13,7 +13,9 @@ test('A07: the app shell cannot block startup on a remote CDN', () => {
13 assert.doesNotMatch(html, /<link[^>]*href=["']https?:\/\//i);
14 assert.match(entry, /@fontsource\/vazirmatn\/400\.css/);
15 assert.match(entry, /@fontsource\/vazirmatn\/700\.css/);
16 - assert.match(excel, /import \* as XLSX from 'xlsx'/);
16 + assert.match(excel, /import\('xlsx'\)/);
17 + assert.doesNotMatch(excel, /import \* as XLSX from 'xlsx'/);
18 + assert.match(excel, /async function loadSheetJS\(\)/);
19 });
20
21 test('A07: bundled SheetJS can read and write Persian spreadsheets with integer currency', () => {