Skip to content

Commit

Permalink
test: replace forEach with for..of in test-net-isipv6.js
Browse files Browse the repository at this point in the history
PR-URL: #49823
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
niyashiyas authored and lpinca committed Oct 13, 2023
1 parent ca25d56 commit 41e4174
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-net-isipv6.js
Expand Up @@ -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);
});
}

0 comments on commit 41e4174

Please sign in to comment.