Skip to content

Commit 9f911d3

Browse files
john-mcinallUlisesGascon
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 8a5f36f commit 9f911d3

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
@@ -105,15 +105,15 @@ const testFixtures = fixtures.path('test-runner');
105105
['--print', 'console.log("should not print")', '--test'],
106106
];
107107

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

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

119119
{

0 commit comments

Comments
 (0)