We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e6f9ed commit 37f3ebcCopy full SHA for 37f3ebc
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 (const test of typeErrorTests) {
+ for (const namespace of [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