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 <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
  • Loading branch information
VoltrexKeyva authored and danielleadams committed Aug 16, 2021
1 parent 5f92d2f commit a5ded4a
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 a5ded4a

Please sign in to comment.