From b24ab473d51d7bd9b781b0ef52c940089087a799 Mon Sep 17 00:00:00 2001 From: voltrexmaster Date: Fri, 13 Aug 2021 01:15:54 -0700 Subject: [PATCH] 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 Reviewed-By: Antoine du Hamel Reviewed-By: Zijian Liu --- test/parallel/test-validators.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-validators.js b/test/parallel/test-validators.js index 9dbf5f9c4599f2..6b0d49c6997a65 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); }