From a475e62a3e6bcec3be6ff03f1c4bdbf5b188065c Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sun, 13 May 2012 03:29:44 +0200 Subject: [PATCH] Windows: add test for path.normalize with UNC paths --- test/simple/test-path.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/simple/test-path.js b/test/simple/test-path.js index 92c2647fd2..6105f2302c 100644 --- a/test/simple/test-path.js +++ b/test/simple/test-path.js @@ -197,6 +197,8 @@ if (isWindows) { assert.equal(path.normalize('a//b//../b'), 'a\\b'); assert.equal(path.normalize('a//b//./c'), 'a\\b\\c'); assert.equal(path.normalize('a//b//.'), 'a\\b'); + assert.equal(path.normalize('//server/share/dir/file.ext'), + '\\\\server\\share\\dir\\file.ext'); } else { assert.equal(path.normalize('./fixtures///b/../b/c.js'), 'fixtures/b/c.js');