mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: replace fixturesDir with fixtures module
PR-URL: https://github.com/nodejs/node/pull/16036 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
a8e7fa4e75
commit
bba5263d00
1 file changed
+2
-2
@@ -1,8 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
const common = require('../common');
|
||||
const fixtures = require('../common/fixtures');
|
||||
const assert = require('assert');
|
||||
const path = require('path');
|
||||
const repl = require('repl');
|
||||
let found = false;
|
||||
|
||||
@@ -17,7 +17,7 @@ common.ArrayStream.prototype.write = function(output) {
|
||||
|
||||
const putIn = new common.ArrayStream();
|
||||
repl.start('', putIn);
|
||||
let file = path.join(common.fixturesDir, 'syntax', 'bad_syntax');
|
||||
let file = fixtures.path('syntax', 'bad_syntax');
|
||||
|
||||
if (common.isWindows)
|
||||
file = file.replace(/\\/g, '\\\\');
|
||||
|
||||
Reference in new issue
Block a user