path2/test/windows/normalize.js
raw| 1 | 'use strict'; |
| 2 | |
| 3 | module.exports = exports = function (t, a) { exports.tests(t, a); }; |
| 4 | |
| 5 | exports.tests = function (t, a) { |
| 6 | a(t('./fixtures///b/../b/c.js'), |
| 7 | 'fixtures\\b\\c.js'); |
| 8 | a(t('/foo/../../../bar'), '\\bar'); |
| 9 | a(t('a//b//../b'), 'a\\b'); |
| 10 | a(t('a//b//./c'), 'a\\b\\c'); |
| 11 | a(t('a//b//.'), 'a\\b'); |
| 12 | a(t('//server/share/dir/file.ext'), |
| 13 | '\\\\server\\share\\dir\\file.ext'); |
| 14 | }; |