diff options
author | Bert Belder <bertbelder@gmail.com> | 2012-05-13 03:29:44 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-05-13 03:29:44 +0200 |
commit | a475e62a3e6bcec3be6ff03f1c4bdbf5b188065c (patch) | |
tree | 2baa69a4e45e09491eeff4e3c36456bfb4a89715 | |
parent | d91004a73d7ae11829f06aea7f630129e8d2683c (diff) | |
download | node-a475e62a3e6bcec3be6ff03f1c4bdbf5b188065c.tar.gz |
Windows: add test for path.normalize with UNC paths
-rw-r--r-- | test/simple/test-path.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/simple/test-path.js b/test/simple/test-path.js index 92c2647fd..6105f2302 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'); |