diff options
author | voltrexmaster <mohammadkeyvanzade94@gmail.com> | 2021-08-13 01:15:54 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-08-15 11:08:49 -0700 |
commit | b24ab473d51d7bd9b781b0ef52c940089087a799 (patch) | |
tree | 6d31aa8073a6fe3023811ae72bbef48d7d34ba2d | |
parent | f037d29abe1ebdfcb8b57528c1fa39d62197e8e6 (diff) | |
download | node-new-b24ab473d51d7bd9b781b0ef52c940089087a799.tar.gz |
test: use simplfied validator
The validators test should use the simplified `validateArray()`
validator.
PR-URL: https://github.com/nodejs/node/pull/39753
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
-rw-r--r-- | test/parallel/test-validators.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-validators.js b/test/parallel/test-validators.js index 9dbf5f9c45..6b0d49c699 100644 --- a/test/parallel/test-validators.js +++ b/test/parallel/test-validators.js @@ -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); } |