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 authored and Evan Lucas committed 2016-06-15 18:02:32 -05:00
1 parent 701e699d4f
commit d6091c8194
15 files changed
+31 -27

No files matched your search

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