Skip to content

Commit

Permalink
test: update test to use fixtures
Browse files Browse the repository at this point in the history
Update test-repl-require-context to use fixtures module.

PR-URL: #16799
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
awegrzyn authored and MylesBorins committed Nov 28, 2017
1 parent 143d8a1 commit 755f5e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/parallel/test-repl-require-context.js
Expand Up @@ -2,10 +2,9 @@
const common = require('../common');
const assert = require('assert');
const cp = require('child_process');
const path = require('path');
const child = cp.spawn(process.execPath, ['--interactive']);
const fixture = path.join(common.fixturesDir, 'is-object.js').replace(/\\/g,
'/');
const fixtures = require('../common/fixtures');
const fixture = fixtures.path('is-object.js').replace(/\\/g, '/');
let output = '';

child.stdout.setEncoding('utf8');
Expand Down

0 comments on commit 755f5e3

Please sign in to comment.