feat(tests): fully implemented test suite
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user