mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
fix(node:path): toNamespacedPath bugfix (#11406)
This commit is contained in:
@@ -61,7 +61,9 @@ describe("path.toNamespacedPath", () => {
|
||||
assert.strictEqual(path.win32.toNamespacedPath("C:/foo"), "\\\\?\\C:\\foo");
|
||||
assert.strictEqual(path.win32.toNamespacedPath("\\\\foo\\bar"), "\\\\?\\UNC\\foo\\bar\\");
|
||||
assert.strictEqual(path.win32.toNamespacedPath("//foo//bar"), "\\\\?\\UNC\\foo\\bar\\");
|
||||
assert.strictEqual(path.win32.toNamespacedPath("\\\\?\\foo"), "\\\\?\\foo");
|
||||
assert.strictEqual(path.win32.toNamespacedPath("\\\\?\\foo\\"), "\\\\?\\foo\\");
|
||||
assert.strictEqual(path.win32.toNamespacedPath("\\\\?\\foo"), "\\\\?\\foo\\");
|
||||
assert.strictEqual(path.win32.toNamespacedPath("\\\\?\\c:\\Windows/System"), "\\\\?\\c:\\Windows\\System");
|
||||
assert.strictEqual(path.win32.toNamespacedPath(null), null);
|
||||
assert.strictEqual(path.win32.toNamespacedPath(true), true);
|
||||
assert.strictEqual(path.win32.toNamespacedPath(1), 1);
|
||||
|
||||
Reference in New Issue
Block a user