Skip to content

Commit a617707

Browse files
PyMedicMylesBorins
authored andcommittedNov 21, 2017
test: replace fixturesDir with fixtures module
PR-URL: #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>
1 parent 2acad04 commit a617707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/parallel/test-repl-syntax-error-stack.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

33
const common = require('../common');
4+
const fixtures = require('../common/fixtures');
45
const assert = require('assert');
5-
const path = require('path');
66
const repl = require('repl');
77
let found = false;
88

@@ -17,7 +17,7 @@ common.ArrayStream.prototype.write = function(output) {
1717

1818
const putIn = new common.ArrayStream();
1919
repl.start('', putIn);
20-
let file = path.join(common.fixturesDir, 'syntax', 'bad_syntax');
20+
let file = fixtures.path('syntax', 'bad_syntax');
2121

2222
if (common.isWindows)
2323
file = file.replace(/\\/g, '\\\\');

0 commit comments

Comments
 (0)