فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(A02): orphan mapping negative regression
davoodmehraban89 committed
Oct 18, 2026 at 14:02 UTC
0e0de708febde9db8197cf940031149042e728d5
1 file changed
+6
tests/a02-holoo-delimited-export.test.mjs
+6
@@ -239,3 +239,9 @@ test('A02: unknown canonical mapping fields fail closed before preflight', () =>
239
sample.mappings.invoices.unrecognizedAmount = 'gross';
240
assert.throws(() => previewHolooDelimitedExport(sample), /CSV_UNSUPPORTED_CANONICAL_FIELD/);
241
});
242
+
243
+test('A02: a mapping without its source table fails closed', () => {
244
+ const sample = fixture();
245
+ delete sample.tables.cheques;
246
+ assert.throws(() => previewHolooDelimitedExport(sample), /CSV_MAPPING_WITHOUT_SOURCE_TABLE/);
247
+});