Skip to content

Commit

Permalink
test: replace forEach with for of
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
john-mcinall committed Nov 10, 2023
1 parent 43f5b22 commit fd4a305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-runner-cli.js
Expand Up @@ -104,15 +104,15 @@ const testFixtures = fixtures.path('test-runner');
['--print', 'console.log("should not print")', '--test'],
];

flags.forEach((args) => {
for (const args of flags) {
const child = spawnSync(process.execPath, args);

assert.notStrictEqual(child.status, 0);
assert.strictEqual(child.signal, null);
assert.strictEqual(child.stdout.toString(), '');
const stderr = child.stderr.toString();
assert.match(stderr, /--test/);
});
}
}

{
Expand Down

0 comments on commit fd4a305

Please sign in to comment.