Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb3abda

Browse filesBrowse 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 <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 d0ad873 commit cb3abda
Copy full SHA for cb3abda

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎lib/internal/test_runner/runner.js‎

Copy file name to clipboardExpand all lines: lib/internal/test_runner/runner.js
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.