Skip to content

Commit a5ded4a

Browse files
VoltrexKeyvadanielleadams
authored andcommitted
test: use simplfied validator
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]>
1 parent 5f92d2f commit a5ded4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-validators.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ const invalidArgValueError = {
5555
}, invalidArgTypeError);
5656
});
5757

58-
validateArray([1], 'foo', { minLength: 1 });
58+
validateArray([1], 'foo', 1);
5959
assert.throws(() => {
60-
validateArray([], 'foo', { minLength: 1 });
60+
validateArray([], 'foo', 1);
6161
}, invalidArgValueError);
6262
}
6363

0 commit comments

Comments
 (0)