Debian Codegraph @

path2/test/posix/dirname.js

raw
1 'use strict';
2
3 var f = '/foo/test/posix/test-path.js';
4
5 module.exports = exports = function (t, a) { exports.tests(t, a); };
6
7 exports.tests = function (t, a) {
8 a(t(f).substr(-10), 'test/posix');
9 a(t('/a/b/'), '/a');
10 a(t('/a/b'), '/a');
11 a(t('/a'), '/');
12 a(t(''), '.');
13 a(t('/'), '/');
14 a(t('////'), '/');
15 };