Lines Matching refs:root
28 // [path, root]
54 ['t', { base: 't', name: 't', root: '', dir: '', ext: '' }],
55 ['/foo/bar', { root: '/', dir: '/foo', base: 'bar', ext: '', name: 'bar' }],
61 [{ root: 'C:\\' }, 'C:\\'],
64 [{ root: 'C:\\', name: 'index', ext: '.html' }, 'C:\\index.html'],
69 // [path, root]
95 [{ root: '/' }, '/'],
98 [{ root: '/', name: 'index', ext: '.html' }, '/index.html'],
125 [['.\\', { root: '', dir: '', base: '.', ext: '', name: '.' }],
126 ['\\\\', { root: '\\', dir: '\\', base: '', ext: '', name: '' }],
127 ['\\\\', { root: '\\', dir: '\\', base: '', ext: '', name: '' }],
129 { root: 'c:\\', dir: 'c:\\', base: 'foo', ext: '', name: 'foo' }],
131 { root: 'D:\\',
140 [['./', { root: '', dir: '', base: '.', ext: '', name: '.' }],
141 ['//', { root: '/', dir: '/', base: '', ext: '', name: '' }],
142 ['///', { root: '/', dir: '/', base: '', ext: '', name: '' }],
143 ['/foo///', { root: '/', dir: '/', base: 'foo', ext: '', name: 'foo' }],
145 { root: '/', dir: '/foo//', base: 'bar.baz', ext: '.baz', name: 'bar' },
189 paths.forEach(([element, root]) => {
191 assert.strictEqual(typeof output.root, 'string');
197 assert.strictEqual(output.root, root);
198 assert(output.dir.startsWith(output.root));