Skip to content

Commit cb3abda

Browse files
cjihrigMoLow
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 <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
1 parent d0ad873 commit cb3abda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/test_runner/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function run(options) {
390390
if (!ArrayIsArray(testNamePatterns)) {
391391
testNamePatterns = [testNamePatterns];
392392
}
393-
validateArray(testNamePatterns, 'options.testNamePatterns');
393+
394394
testNamePatterns = ArrayPrototypeMap(testNamePatterns, (value, i) => {
395395
if (isRegExp(value)) {
396396
return value;

0 commit comments

Comments
 (0)