From 242cbd7d1a92562575348900e7dc5a112dbc536c Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Sun, 12 Nov 2023 11:24:52 +0000 Subject: [PATCH] test: replace forEach with for...of MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/50611 Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca --- test/parallel/test-fs-mkdtemp-prefix-check.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-fs-mkdtemp-prefix-check.js b/test/parallel/test-fs-mkdtemp-prefix-check.js index 33a06914a46e10..af5cb6ab7db07d 100644 --- a/test/parallel/test-fs-mkdtemp-prefix-check.js +++ b/test/parallel/test-fs-mkdtemp-prefix-check.js @@ -27,7 +27,7 @@ function failAsync(value) { }); } -prefixValues.forEach((prefixValue) => { +for (const prefixValue of prefixValues) { fail(prefixValue); failAsync(prefixValue); -}); +}