Skip to content

Commit

Permalink
test: update decorator name in failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
NoNameProvided committed Nov 13, 2022
1 parent c864686 commit 0da8f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/validation-functions-and-decorators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3662,13 +3662,13 @@ 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);
});

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);
});
Expand Down

0 comments on commit 0da8f89

Please sign in to comment.