Skip to content

Commit

Permalink
Better throw test
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 committed Jan 26, 2024
1 parent 790fbbe commit 57c3b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/test/validationUtils/hasValidCharLength.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ export function hasValidCharLengthTest() {
assert.equal(validationUtils.hasValidCharLength(value, constraints), false);
}

assert.throws(() => validationUtils.hasValidCharLength('abcdefg', { lowerLimitIncl: 5, upperLimitIncl: -5 }));
assert.throws(() => validationUtils.hasValidCharLength('abcd', { lowerLimitIncl: 5, upperLimitIncl: 4 }));
}

0 comments on commit 57c3b52

Please sign in to comment.