mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
07b54ec4ca
* Favor strictEqual * Use const where appropriate * Modernize where possible PR-URL: https://github.com/nodejs/node/pull/8468 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
13 lines
334 B
JavaScript
13 lines
334 B
JavaScript
'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);
|
|
}));
|