فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(A02): restore mapping for reintroduced synthetic cheque table
davoodmehraban89 committed
Oct 18, 2026 at 22:10 UTC
275a712d66ea711b2e4c541ce1f1c79e4bd2f155
1 file changed
+1
tests/a02-holoo-delimited-export.test.mjs
+1
@@ -159,6 +159,7 @@ test('A02: controls never claim success when their table is missing or the sourc
159
const missing = previewHolooDelimitedExport(sample);
160
assert.ok(missing.issues.some(x => x.code === 'CONTROL_SOURCE_DATASET_MISSING'));
161
sample.tables.cheques = {text:'id,amount\nQ1,N/A\n'};
162
+ sample.mappings.cheques = { sourceId: 'id', amount: 'amount' };
163
sample.declaredControlTotals = { cheques: { amount: 50 } };
164
const invalid = previewHolooDelimitedExport(sample);
165
assert.ok(invalid.issues.some(x => x.code === 'CONTROL_SOURCE_AMOUNT_INVALID'));