Skip to content

Commit 0e8275b

Browse files
bluescreentargos
authored andcommitted
test: replace foreach with for
PR-URL: #50599 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent db8ce5b commit 0e8275b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-path.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function fail(fn) {
3535
}, { code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' });
3636
}
3737

38-
typeErrorTests.forEach((test) => {
39-
[path.posix, path.win32].forEach((namespace) => {
38+
for (const test of typeErrorTests) {
39+
for (const namespace of [path.posix, path.win32]) {
4040
fail(namespace.join, test);
4141
fail(namespace.resolve, test);
4242
fail(namespace.normalize, test);
@@ -52,8 +52,8 @@ typeErrorTests.forEach((test) => {
5252
if (test !== undefined) {
5353
fail(namespace.basename, 'foo', test);
5454
}
55-
});
56-
});
55+
}
56+
}
5757

5858
// path.sep tests
5959
// windows

0 commit comments

Comments
 (0)