mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05: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:
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, '\\\\');
|
||||
|
||||
Reference in new issue
Block a user