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:
Bryan English 2016-05-26 09:43:09 -07:00
parent 843d58fcbb
commit cc2a88a2f3
15 changed files with 31 additions and 27 deletions

View file

@ -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, '\\\\');