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

test(Q01): align fixture assertions with positive transfer evidence

davoodmehraban89 committed Nov 1, 2026 at 11:04 UTC 1bc68a263f4f8ea91726c0339cfa9d2e3ee79964
2 files changed +3 -3
tests/q01-native-action-coverage.test.mjs
+1 -1
@@ -14,7 +14,7 @@ test('Q01 maps invoice and treasury handlers only when every required native sce
14 };
15 const evidence={nativeFunctional:scenarios};
16 assert.equal(coverageFor('window.InvoiceFormView._save(false)',evidence).kind,'native-fixture-positive-and-negative');
17 - assert.equal(coverageFor("window.TreasuryView._saveTransaction('transfer')",evidence).kind,'native-negative-guard-only');
17 + assert.equal(coverageFor("window.TreasuryView._saveTransaction('transfer')",evidence).kind,'native-fixture-positive-and-negative');
18 assert.equal(coverageFor('window.ContactsView.saveContact(null)',evidence),null);
19 delete scenarios['purchase-return-and-stock-guardrails'];
20 assert.equal(coverageFor('window.InvoiceFormView._save(false)',evidence),null);
tests/windows-vm-native-performance-contract.test.mjs
+2 -2
@@ -43,6 +43,6 @@ test('Q01 Windows native matrix requires the additional invoice, print, expense,
43 assert.match(matrix,/window\.InvoiceFormView\._save\(true\)/);
44 assert.match(matrix,/window\.StockKardexModal\._printKardex/);
45 assert.match(matrix,/window\.ContactLedgerModal\._printLedger/);
46 - assert.match(matrix,/window\.AccountingView\.saveTransfer/);
47 - assert.match(matrix,/window\.AccountingView\.finishStocktake/);
46 + assert.match(matrix,/view\.saveTransfer\(\)/);
47 + assert.match(matrix,/view\.finishStocktake\(\)/);
48 });