Skip to content

Commit 864cd32

Browse files
john-mcinalltargos
authored andcommitted
test: replace forEach with for of
PR-URL: #50602 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2fdcf5c commit 864cd32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-runner-cli.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ const testFixtures = fixtures.path('test-runner');
104104
['--print', 'console.log("should not print")', '--test'],
105105
];
106106

107-
flags.forEach((args) => {
107+
for (const args of flags) {
108108
const child = spawnSync(process.execPath, args);
109109

110110
assert.notStrictEqual(child.status, 0);
111111
assert.strictEqual(child.signal, null);
112112
assert.strictEqual(child.stdout.toString(), '');
113113
const stderr = child.stderr.toString();
114114
assert.match(stderr, /--test/);
115-
});
115+
}
116116
}
117117

118118
{

0 commit comments

Comments
 (0)