Lines Matching full:path
3 // These testcases are specific to one uncommon behavior in path module. Few
4 // of the functions in path module, treat '' strings as current working
10 const path = require('path');
15 assert.strictEqual(path.posix.join(''), '.');
16 assert.strictEqual(path.posix.join('', ''), '.');
17 assert.strictEqual(path.win32.join(''), '.');
18 assert.strictEqual(path.win32.join('', ''), '.');
19 assert.strictEqual(path.join(pwd), pwd);
20 assert.strictEqual(path.join(pwd, ''), pwd);
23 assert.strictEqual(path.posix.normalize(''), '.');
24 assert.strictEqual(path.win32.normalize(''), '.');
25 assert.strictEqual(path.normalize(pwd), pwd);
27 // Since '' is not a valid path in any of the common environments, return false
28 assert.strictEqual(path.posix.isAbsolute(''), false);
29 assert.strictEqual(path.win32.isAbsolute(''), false);
33 assert.strictEqual(path.resolve(''), pwd);
34 assert.strictEqual(path.resolve('', ''), pwd);
37 assert.strictEqual(path.relative('', pwd), '');
38 assert.strictEqual(path.relative(pwd, ''), '');
39 assert.strictEqual(path.relative(pwd, pwd), '');