فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(A02): distinguish missing control dataset from orphan mapping
davoodmehraban89 committed
Oct 18, 2026 at 14:03 UTC
5bd1b276d31bf49d2d0adda249d80ed747cfe871
1 file changed
+1
tests/a02-holoo-delimited-export.test.mjs
+1
@@ -155,6 +155,7 @@ test('A02: controls never claim success when their table is missing or the sourc
155
const sample = fixture();
156
sample.declaredControlTotals = { cheques: { count: 1 } };
157
delete sample.tables.cheques;
158
+ delete sample.mappings.cheques;
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'};