mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: use common.fixturesDir almost everywhere
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`. PR-URL: https://github.com/nodejs/node/pull/6997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
843d58fcbb
commit
cc2a88a2f3
15 changed files with 31 additions and 27 deletions
|
@ -17,7 +17,7 @@ common.ArrayStream.prototype.write = function(output) {
|
|||
|
||||
const putIn = new common.ArrayStream();
|
||||
repl.start('', putIn);
|
||||
let file = path.resolve(__dirname, '../fixtures/syntax/bad_syntax');
|
||||
let file = path.join(common.fixturesDir, 'syntax', 'bad_syntax');
|
||||
|
||||
if (common.isWindows)
|
||||
file = file.replace(/\\/g, '\\\\');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue