feat(tests): fully implemented test suite
This commit is contained in:
@ -84,7 +84,7 @@ tap.test('VAL-10: Business Level Validation - Invoice Totals Consistency', async
|
||||
const validationResult = await invoice.validate();
|
||||
|
||||
if (test.valid) {
|
||||
expect(validationResult.valid).toBe(true);
|
||||
expect(validationResult.valid).toBeTrue();
|
||||
tools.log(`✓ ${test.name}: Valid business logic accepted`);
|
||||
} else {
|
||||
expect(validationResult.valid).toBe(false);
|
||||
@ -343,7 +343,7 @@ tap.test('VAL-10: Business Level Validation - Business Rules Compliance', async
|
||||
const validationResult = await invoice.validate();
|
||||
|
||||
if (test.valid) {
|
||||
expect(validationResult.valid).toBe(true);
|
||||
expect(validationResult.valid).toBeTrue();
|
||||
tools.log(`✓ ${test.name}: Business rule compliance verified`);
|
||||
} else {
|
||||
expect(validationResult.valid).toBe(false);
|
||||
|
Reference in New Issue
Block a user