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 <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
niyashiyas authored and targos committed Oct 23, 2023
1 parent 19d3ce2 commit 67c599e
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 67c599e

Please sign in to comment.