From 41e4174945018f3af4f12c7d0f75333530a404c7 Mon Sep 17 00:00:00 2001 From: Niya Shiyas Date: Sat, 23 Sep 2023 14:25:25 +0530 Subject: [PATCH] test: replace forEach with for..of in test-net-isipv6.js PR-URL: https://github.com/nodejs/node/pull/49823 Reviewed-By: Luigi Pinca --- test/parallel/test-net-isipv6.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-net-isipv6.js b/test/parallel/test-net-isipv6.js index 855f17a076c697..dbb8d80b7b16bd 100644 --- a/test/parallel/test-net-isipv6.js +++ b/test/parallel/test-net-isipv6.js @@ -235,10 +235,10 @@ const v6not = [ '02001:0000:1234:0000:0000:C1C0:ABCD:0876', ]; -v6.forEach((ip) => { +for (const ip of v6) { assert.strictEqual(net.isIPv6(ip), true); -}); +} -v6not.forEach((ip) => { +for (const ip of v6not) { assert.strictEqual(net.isIPv6(ip), false); -}); +}