Lines Matching full:path
32 const path = require('path');
37 const tmpDir = tmpdir.path;
55 return path.join(tmpDir, p);
58 const targetsAbsDir = path.join(tmpDir, 'targets');
63 fs.mkdirSync(path.join(targetsAbsDir, 'nested-index'));
64 fs.mkdirSync(path.join(targetsAbsDir, 'nested-index', 'one'));
65 fs.mkdirSync(path.join(targetsAbsDir, 'nested-index', 'two'));
85 realpath('/this/path/does/not/exist', common.mustCall(function(err, s) {
93 realpath('/this/path/does/not/exist', null, common.mustCall(function(err, s) {
109 [entry, `../${path.basename(tmpDir)}/cycles/root.js`],
119 assertEqualPath(result, path.resolve(expected));
121 assertEqualPath(result, path.resolve(expected));
135 const expected = fixtures.path('nested-index', 'one');
147 assertEqualPath(result, path.resolve(expected));
149 assertEqualPath(result, path.resolve(expected));
160 const expected = fixtures.path('cycles', 'root.js');
161 const linkData1 = path
162 .relative(path.join(targetsAbsDir, 'nested-index', 'one'),
164 const linkPath1 = path.join(targetsAbsDir,
172 const entry = path.join(targetsAbsDir,
181 assertEqualPath(realpathSync(entry), path.resolve(expected));
183 assertEqualPath(result, path.resolve(expected));
193 const expected = fixtures.path('cycles', 'folder');
194 const path1b = path.join(targetsAbsDir, 'nested-index', 'one');
195 const linkPath1b = path.join(path1b, 'symlink1-dir');
196 const linkData1b = path.relative(path1b, expected);
203 const entry = path.join(targetsAbsDir,
212 assertEqualPath(realpathSync(entry), path.resolve(expected));
215 assertEqualPath(result, path.resolve(expected));
225 const entry = path.join(tmpDir, '/cycles/realpath-3a');
228 [path.join(tmpDir, '/cycles/realpath-3b'), '../cycles/realpath-3c'],
229 [path.join(tmpDir, '/cycles/realpath-3c'), '../cycles/realpath-3a'],
242 assert.strictEqual(err.path, entry);
265 assertEqualPath(realpathSync(testPath), path.resolve(expected));
267 assertEqualPath(res, path.resolve(expected));
278 // We need to calculate the relative path to the tmp dir from cwd
280 const entry = path.relative(entrydir,
281 path.join(`${tmpDir}/cycles/realpath-3a`));
293 const b = path.basename(t[1]);
302 assertEqualPath(realpathSync(entry), path.resolve(expected));
305 assertEqualPath(result, path.resolve(expected));
360 assertEqualPath(realpathSync(entry), path.resolve(expected));
362 assertEqualPath(result, path.resolve(expected));
369 const entrydir = path.dirname(tmpAbsDir);
374 assertEqualPath(realpathSync(entry), path.resolve(expected));
377 assertEqualPath(result, path.resolve(expected));
382 const upone = path.join(process.cwd(), '..');
388 `realpath("..") expected: ${path.resolve(upone)} actual:${uponeActual}`);
539 assertEqualPath(actual, path.resolve(expectPath));
542 assertEqualPath(actual, path.resolve(expectPath));