From 8b443a18b9bcb1a9b32de0d3db4ddf0d9b2a6f15 Mon Sep 17 00:00:00 2001 From: Markus Muschol Date: Mon, 13 Nov 2023 12:32:36 +0100 Subject: [PATCH] test: replace unnecessary changes --- test/parallel/test-path.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/test/parallel/test-path.js b/test/parallel/test-path.js index 7b2acab9937aca..0cb55d42aa2999 100644 --- a/test/parallel/test-path.js +++ b/test/parallel/test-path.js @@ -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) { @@ -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);