Lines Matching full:path

4 const path = require('path');
12 ['/path/to/file', ''],
13 ['/path/to/file.ext', '.ext'],
14 ['/path.to/file.ext', '.ext'],
15 ['/path.to/file', ''],
16 ['/path.to/.file', ''],
17 ['/path.to/.file.ext', '.ext'],
18 ['/path/to/f.ext', '.ext'],
19 ['/path/to/..ext', '.ext'],
20 ['/path/to/..', ''],
29 ['.path/file.ext', '.ext'],
55 [path.posix.extname, path.win32.extname].forEach((extname) => {
58 if (extname === path.win32.extname) {
65 const message = `path.${os}.extname(${JSON.stringify(input)})\n expect=${
72 const actual = path.win32.extname(input);
73 const message = `path.win32.extname(${JSON.stringify(input)})\n expect=${
81 // On Windows, backslash is a path separator.
82 assert.strictEqual(path.win32.extname('.\\'), '');
83 assert.strictEqual(path.win32.extname('..\\'), '');
84 assert.strictEqual(path.win32.extname('file.ext\\'), '.ext');
85 assert.strictEqual(path.win32.extname('file.ext\\\\'), '.ext');
86 assert.strictEqual(path.win32.extname('file\\'), '');
87 assert.strictEqual(path.win32.extname('file\\\\'), '');
88 assert.strictEqual(path.win32.extname('file.\\'), '.');
89 assert.strictEqual(path.win32.extname('file.\\\\'), '.');
92 assert.strictEqual(path.posix.extname('.\\'), '');
93 assert.strictEqual(path.posix.extname('..\\'), '.\\');
94 assert.strictEqual(path.posix.extname('file.ext\\'), '.ext\\');
95 assert.strictEqual(path.posix.extname('file.ext\\\\'), '.ext\\\\');
96 assert.strictEqual(path.posix.extname('file\\'), '');
97 assert.strictEqual(path.posix.extname('file\\\\'), '');
98 assert.strictEqual(path.posix.extname('file.\\'), '.\\');
99 assert.strictEqual(path.posix.extname('file.\\\\'), '.\\\\');