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 Oct 21, 2023
1 parent c38ba67 commit b084b26
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 b084b26

Please sign in to comment.