Skip to content

Commit

Permalink
test: unresolved promises hiding test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeguta committed Nov 16, 2021
1 parent 35f8d20 commit 1b6af93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/functional/validation-functions-and-decorators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3662,15 +3662,15 @@ describe('Length', () => {
});

it('should return error object with proper data', () => {
const validationType = 'length';
const validationType = 'isLength';
const message = 'someProperty must be longer than or equal to ' + constraintToString(constraint1) + ' characters';
checkReturnedError(new MyClass(), ['', 'a'], validationType, message);
return checkReturnedError(new MyClass(), ['', 'a'], validationType, message);
});

it('should return error object with proper data', () => {
const validationType = 'length';
const validationType = 'isLength';
const message = 'someProperty must be shorter than or equal to ' + constraintToString(constraint2) + ' characters';
checkReturnedError(new MyClass(), ['aaaa', 'azzazza'], validationType, message);
return checkReturnedError(new MyClass(), ['aaaa', 'azzazza'], validationType, message);
});
});

Expand Down

0 comments on commit 1b6af93

Please sign in to comment.