From 86bdd2abed0e44605b1bae1df4d2ad6ac0183864 Mon Sep 17 00:00:00 2001 From: Niya Shiyas Date: Sat, 23 Sep 2023 14:25:25 +0530 Subject: [PATCH 1/4] test: replace forEach with for..of in test-net-isipv6.js --- 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..540f319114103f 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); -}); +}; From 2458e2774a035acfad0c8461c3edbf1e9fed1692 Mon Sep 17 00:00:00 2001 From: Niya Shiyas Date: Sun, 24 Sep 2023 15:32:00 +0530 Subject: [PATCH 2/4] test: replace forEach with for..of in test-net-isipv6.js --- test/parallel/test-net-isipv6.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-net-isipv6.js b/test/parallel/test-net-isipv6.js index 540f319114103f..a4f074aa9a3dc9 100644 --- a/test/parallel/test-net-isipv6.js +++ b/test/parallel/test-net-isipv6.js @@ -237,8 +237,8 @@ const v6not = [ for(const ip of v6) { assert.strictEqual(net.isIPv6(ip), true); -}; +} for(const ip of v6not) { assert.strictEqual(net.isIPv6(ip), false); -}; +} From 51fd40e78db83499b469850b1ea49eebebfce8f2 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sat, 7 Oct 2023 11:52:25 +0200 Subject: [PATCH 3/4] Update test/parallel/test-net-isipv6.js --- test/parallel/test-net-isipv6.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-isipv6.js b/test/parallel/test-net-isipv6.js index a4f074aa9a3dc9..b7c33a75bddf91 100644 --- a/test/parallel/test-net-isipv6.js +++ b/test/parallel/test-net-isipv6.js @@ -235,7 +235,7 @@ const v6not = [ '02001:0000:1234:0000:0000:C1C0:ABCD:0876', ]; -for(const ip of v6) { +for (const ip of v6) { assert.strictEqual(net.isIPv6(ip), true); } From 704b321fc2b5917830b3265f3b079a45be5777f1 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sat, 7 Oct 2023 11:52:31 +0200 Subject: [PATCH 4/4] Update test/parallel/test-net-isipv6.js --- test/parallel/test-net-isipv6.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-net-isipv6.js b/test/parallel/test-net-isipv6.js index b7c33a75bddf91..dbb8d80b7b16bd 100644 --- a/test/parallel/test-net-isipv6.js +++ b/test/parallel/test-net-isipv6.js @@ -239,6 +239,6 @@ for (const ip of v6) { assert.strictEqual(net.isIPv6(ip), true); } -for(const ip of v6not) { +for (const ip of v6not) { assert.strictEqual(net.isIPv6(ip), false); }