Skip to content

Commit

Permalink
test: replace fixturesDir with fixtures module
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
PyMedic authored and MylesBorins committed Oct 11, 2017
1 parent 387b0b8 commit e4f0483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-repl-syntax-error-stack.js
Original file line number Diff line number Diff line change
@@ -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;

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

0 comments on commit e4f0483

Please sign in to comment.