From 2f0ffde842ad4ba6f30cc3618952a67acd1d2cc8 Mon Sep 17 00:00:00 2001 From: Niya Shiyas <98641481+niyashiyas@users.noreply.github.com> Date: Sat, 21 Oct 2023 18:02:43 +0530 Subject: [PATCH] test: replace forEach with for..of in test-net-isipv4.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/49822 Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen --- test/parallel/test-net-isipv4.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-net-isipv4.js b/test/parallel/test-net-isipv4.js index 8f5c30569ce988..2c478e6ac678b7 100644 --- a/test/parallel/test-net-isipv4.js +++ b/test/parallel/test-net-isipv4.js @@ -37,10 +37,10 @@ const v4not = [ '192.168.0.2000000000', ]; -v4.forEach((ip) => { +for (const ip of v4) { assert.strictEqual(net.isIPv4(ip), true); -}); +} -v4not.forEach((ip) => { +for (const ip of v4not) { assert.strictEqual(net.isIPv4(ip), false); -}); +}