feat(tests): fully implemented test suite

This commit is contained in:
2025-05-26 05:16:32 +00:00
parent 1d52ce1211
commit 113ae22c42
40 changed files with 3747 additions and 37 deletions

View File

@ -93,7 +93,7 @@ tap.test('VAL-09: Semantic Level Validation - Date Format Validation', async (to
if (test.valid) {
expect(parseResult).toBeTruthy();
const validationResult = await invoice.validate();
expect(validationResult.valid).toBe(true);
expect(validationResult.valid).toBeTrue();
tools.log(`✓ Valid date '${test.value}' accepted`);
} else {
// Should either fail parsing or validation
@ -232,7 +232,7 @@ tap.test('VAL-09: Semantic Level Validation - Cross-Field Dependencies', async (
const validationResult = await invoice.validate();
if (test.valid) {
expect(validationResult.valid).toBe(true);
expect(validationResult.valid).toBeTrue();
tools.log(`${test.name}: Valid cross-field dependency accepted`);
} else {
expect(validationResult.valid).toBe(false);