Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
test: use common.fixtures module
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#15992
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
shaun-sweet authored and addaleax committed Oct 15, 2017
1 parent 2774381 commit f0cf222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-eval-require.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@

'use strict';
const common = require('../common');
const { fixturesDir } = require('../common/fixtures');
const assert = require('assert');
const spawn = require('child_process').spawn;

const options = {
cwd: common.fixturesDir
cwd: fixturesDir
};
const child = spawn(process.execPath, ['-e', 'require("foo")'], options);
child.on('exit', common.mustCall((code) => {
Expand Down

0 comments on commit f0cf222

Please sign in to comment.