Skip to content

Commit

Permalink
test: replace forEach with for..of in test-net-isipv4.js
Browse files Browse the repository at this point in the history
PR-URL: #49822
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • Loading branch information
niyashiyas authored and targos committed Nov 11, 2023
1 parent b55fcd7 commit 379a725
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-net-isipv4.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

0 comments on commit 379a725

Please sign in to comment.