0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

Windows: add test for path.normalize with UNC paths

This commit is contained in:
Bert Belder 2012-05-13 03:29:44 +02:00
parent d91004a73d
commit a475e62a3e

View File

@ -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');