From 9f911d31f63cc6e902284995c923465b9989d4b8 Mon Sep 17 00:00:00 2001 From: john-mcinall <66478643+john-mcinall@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:46:55 +0000 Subject: [PATCH] test: replace forEach with for of PR-URL: https://github.com/nodejs/node/pull/50602 Reviewed-By: Rafael Gonzaga Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca --- test/parallel/test-runner-cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-runner-cli.js b/test/parallel/test-runner-cli.js index 81e20045e33bdd..7b53fc6485a721 100644 --- a/test/parallel/test-runner-cli.js +++ b/test/parallel/test-runner-cli.js @@ -105,7 +105,7 @@ 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); @@ -113,7 +113,7 @@ const testFixtures = fixtures.path('test-runner'); assert.strictEqual(child.stdout.toString(), ''); const stderr = child.stderr.toString(); assert.match(stderr, /--test/); - }); + } } {