summaryrefslogtreecommitdiff
path: root/test/parallel/test-eval-require.js
blob: 35f47a922af474f9e69dff3388e2556539c57c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';
const common = require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;

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