Skip to content

Commit f8581e7

Browse files
cjihrigtargos
authored andcommitted
test_runner: remove no-op validation
The code already checks if testNamePatterns is an array, and converts it to an array if it is not. PR-URL: #47687 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
1 parent 84fa9fd commit f8581e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/test_runner/runner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function run(options) {
391391
if (!ArrayIsArray(testNamePatterns)) {
392392
testNamePatterns = [testNamePatterns];
393393
}
394-
validateArray(testNamePatterns, 'options.testNamePatterns');
394+
395395
testNamePatterns = ArrayPrototypeMap(testNamePatterns, (value, i) => {
396396
if (isRegExp(value)) {
397397
return value;

0 commit comments

Comments
 (0)