فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test: update discount input static contract after strict form validation
davoodmehraban89 committed
Oct 31, 2026 at 20:32 UTC
e0bc9652d9e6e2f5b02150d39f1b6e1d14caa1c9
1 file changed
+1
-1
tests/invoice-discount-input-integrity.test.mjs
+1
-1
@@ -59,7 +59,7 @@ test('invalid row discount must fail before creating a financial invoice or prei
59
60
test('UI updates discountInput, not already-calculated rial discount, when typing', () => {
61
const view = readFileSync(new URL('../src/views/InvoiceFormView.js', import.meta.url), 'utf8');
62
- assert.match(view, /if \(field === 'discount'\) \{[\s\S]*?ctx\.data\.items\[idx\]\.discountInput = NumberInput\.parse\(value\)/);
62
+ assert.match(view, /if \(field === 'discount'\) \{[\s\S]*?ctx\.data\.items\[idx\]\.discountInput = NumberInput\.parseStrict\(value/);
63
});
64
65