Skip to content

Commit 8b443a1

Browse files
committed
test: replace unnecessary changes
1 parent 56800c3 commit 8b443a1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/parallel/test-path.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ const typeErrorTests = [true, false, 7, null, {}, undefined, [], NaN];
3030
function fail(fn) {
3131
const args = Array.from(arguments).slice(1);
3232

33-
assert.throws(
34-
() => {
35-
fn.apply(null, args);
36-
},
37-
{ code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' }
38-
);
33+
assert.throws(() => {
34+
fn.apply(null, args);
35+
}, { code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' });
3936
}
4037

4138
for (const test of typeErrorTests) {
@@ -70,5 +67,7 @@ assert.strictEqual(path.win32.delimiter, ';');
7067
// posix
7168
assert.strictEqual(path.posix.delimiter, ':');
7269

73-
if (common.isWindows) assert.strictEqual(path, path.win32);
74-
else assert.strictEqual(path, path.posix);
70+
if (common.isWindows)
71+
assert.strictEqual(path, path.win32);
72+
else
73+
assert.strictEqual(path, path.posix);

0 commit comments

Comments
 (0)