UNPKG

path2

Version:

Modular and extended version of `path` package

13 lines (10 loc) 296 B
'use strict'; module.exports = exports = function (t, a) { exports.tests(t, a); }; exports.tests = function (t, a) { a(t('./fixtures///b/../b/c.js'), 'fixtures/b/c.js'); a(t('/foo/../../../bar'), '/bar'); a(t('a//b//../b'), 'a/b'); a(t('a//b//./c'), 'a/b/c'); a(t('a//b//.'), 'a/b'); };