From 1c87d56c9d7cf366db1bb0f8f674f3c6fd01203b Mon Sep 17 00:00:00 2001 From: Markus Muschol Date: Mon, 13 Nov 2023 12:32:36 +0100 Subject: [PATCH] test: reverted 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);