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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
awegrzyn authored and cjihrig committed Nov 6, 2017
1 parent 6a2cb12 commit f3e63f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/parallel/test-repl-require-context.js
Original file line number Diff line number Diff line change
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 f3e63f2

Please sign in to comment.