We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66764c5 commit 5712c41Copy full SHA for 5712c41
test/parallel/test-path.js
@@ -35,8 +35,8 @@ function fail(fn){
35
},{code: 'ERR_INVALID_ARG_TYPE',name: 'TypeError'});
36
}
37
38
-typeErrorTests.forEach((test)=>{
39
-[path.posix,path.win32].forEach((namespace)=>{
+for(consttestoftypeErrorTests){
+for(constnamespaceof[path.posix,path.win32]){
40
fail(namespace.join,test);
41
fail(namespace.resolve,test);
42
fail(namespace.normalize,test);
@@ -52,8 +52,8 @@ typeErrorTests.forEach((test) =>{
52
if(test!==undefined){
53
fail(namespace.basename,'foo',test);
54
55
-});
56
+}
57
58
// path.sep tests
59
// windows
0 commit comments