Skip to content

Commit

Permalink
test: replace unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescreen committed Nov 13, 2023
1 parent 56800c3 commit 8b443a1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/parallel/test-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ const typeErrorTests = [true, false, 7, null, {}, undefined, [], NaN];
function fail(fn) {
const args = Array.from(arguments).slice(1);

assert.throws(
() => {
fn.apply(null, args);
},
{ code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' }
);
assert.throws(() => {
fn.apply(null, args);
}, { code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' });
}

for (const test of typeErrorTests) {
Expand Down Expand Up @@ -70,5 +67,7 @@ assert.strictEqual(path.win32.delimiter, ';');
// posix
assert.strictEqual(path.posix.delimiter, ':');

if (common.isWindows) assert.strictEqual(path, path.win32);
else assert.strictEqual(path, path.posix);
if (common.isWindows)
assert.strictEqual(path, path.win32);
else
assert.strictEqual(path, path.posix);

0 comments on commit 8b443a1

Please sign in to comment.