diff --git a/test/parallel/test-path-makelong.js b/test/parallel/test-path-makelong.js index 01c81b47502f4e..b0a4ebc6b30b62 100644 --- a/test/parallel/test-path-makelong.js +++ b/test/parallel/test-path-makelong.js @@ -43,6 +43,7 @@ if (common.isWindows) { '\\\\.\\pipe\\somepipe'); } +assert.strictEqual(path.toNamespacedPath(''), ''); assert.strictEqual(path.toNamespacedPath(null), null); assert.strictEqual(path.toNamespacedPath(100), 100); assert.strictEqual(path.toNamespacedPath(path), path); @@ -60,6 +61,7 @@ assert.strictEqual(path.posix.toNamespacedPath(emptyObj), emptyObj); if (common.isWindows) { // These tests cause resolve() to insert the cwd, so we cannot test them from // non-Windows platforms (easily) + assert.strictEqual(path.toNamespacedPath(''), ''); assert.strictEqual(path.win32.toNamespacedPath('foo\\bar').toLowerCase(), `\\\\?\\${process.cwd().toLowerCase()}\\foo\\bar`); assert.strictEqual(path.win32.toNamespacedPath('foo/bar').toLowerCase(),