Skip to content

Commit

Permalink
test: use simplfied validator
Browse files Browse the repository at this point in the history
The validators test should use the simplified `validateArray()`
validator.

PR-URL: #39753
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Zijian Liu <[email protected]>
  • Loading branch information
VoltrexKeyva authored and jasnell committed Aug 15, 2021
1 parent f037d29 commit b24ab47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ const invalidArgValueError = {
}, invalidArgTypeError);
});

validateArray([1], 'foo', { minLength: 1 });
validateArray([1], 'foo', 1);
assert.throws(() => {
validateArray([], 'foo', { minLength: 1 });
validateArray([], 'foo', 1);
}, invalidArgValueError);
}

Expand Down

0 comments on commit b24ab47

Please sign in to comment.