فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(A02): cover unsupported canonical mapping keys
davoodmehraban89 committed
Oct 18, 2026 at 11:13 UTC
4594a01c663b26cef0f8c9e64bb7e34f8d296dd9
1 file changed
+6
tests/a02-holoo-delimited-export.test.mjs
+6
@@ -233,3 +233,9 @@ test('A02: supplied empty control claims are rejected, not presented as checked'
233
/CONTROL_TOTALS_SCHEMA_INVALID/
234
);
235
});
236
+
237
+test('A02: unknown canonical mapping fields fail closed before preflight', () => {
238
+ const sample = fixture();
239
+ sample.mappings.invoices.unrecognizedAmount = 'gross';
240
+ assert.throws(() => previewHolooDelimitedExport(sample), /CSV_UNSUPPORTED_CANONICAL_FIELD/);
241
+});