diff --git a/test/parallel/test-path-makelong.js b/test/parallel/test-path-makelong.js index f3b145729bd691..01c81b47502f4e 100644 --- a/test/parallel/test-path-makelong.js +++ b/test/parallel/test-path-makelong.js @@ -29,17 +29,18 @@ if (common.isWindows) { const file = fixtures.path('a.js'); const resolvedFile = path.resolve(file); - assert.strictEqual(`\\\\?\\${resolvedFile}`, - path.toNamespacedPath(file)); - assert.strictEqual(`\\\\?\\${resolvedFile}`, - path.toNamespacedPath(`\\\\?\\${file}`)); - assert.strictEqual('\\\\?\\UNC\\someserver\\someshare\\somefile', - path.toNamespacedPath( - '\\\\someserver\\someshare\\somefile')); - assert.strictEqual('\\\\?\\UNC\\someserver\\someshare\\somefile', path - .toNamespacedPath('\\\\?\\UNC\\someserver\\someshare\\somefile')); - assert.strictEqual('\\\\.\\pipe\\somepipe', - path.toNamespacedPath('\\\\.\\pipe\\somepipe')); + assert.strictEqual(path.toNamespacedPath(file), + `\\\\?\\${resolvedFile}`); + assert.strictEqual(path.toNamespacedPath(`\\\\?\\${file}`), + `\\\\?\\${resolvedFile}`); + assert.strictEqual(path.toNamespacedPath( + '\\\\someserver\\someshare\\somefile'), + '\\\\?\\UNC\\someserver\\someshare\\somefile'); + assert.strictEqual(path.toNamespacedPath( + '\\\\?\\UNC\\someserver\\someshare\\somefile'), + '\\\\?\\UNC\\someserver\\someshare\\somefile'); + assert.strictEqual(path.toNamespacedPath('\\\\.\\pipe\\somepipe'), + '\\\\.\\pipe\\somepipe'); } assert.strictEqual(path.toNamespacedPath(null), null);