From 4d28ced0797aef1cd4bddb89ad4cc6005975a031 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); -}); +}