Skip to content

Commit 5712c41

Browse files
bluescreenUlisesGascon
authored andcommitted
test: replace foreach with for
PR-URL: #50599 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 66764c5 commit 5712c41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎test/parallel/test-path.js‎

Lines changed: 4 additions & 4 deletions
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(consttestoftypeErrorTests){
39+
for(constnamespaceof[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)