Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code & learn #16036

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
code & lean
Replaced common.fixturesDir with usage of the common.fixtures module.
  • Loading branch information
PyMedic committed Oct 6, 2017
commit 9171591bd5fa411a098dfd82e591e4bd7aa6aefa
3 changes: 2 additions & 1 deletion test/parallel/test-repl-syntax-error-stack.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const common = require('../common');
const fixtures = require('../common/fixtures')
const assert = require('assert');
const path = require('path');
const repl = require('repl');
@@ -17,7 +18,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, '\\\\');