mirror of
https://github.com/nodejs/node.git
synced 2025-05-06 14:52:19 +00:00

Many tests use require() to import modules that subsequently never gets used. This removes those imports and, in a few cases, removes other unused variables from tests. PR-URL: https://github.com/nodejs/node/pull/4475 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
14 lines
307 B
JavaScript
14 lines
307 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
var assert = require('assert');
|
|
var spawn = require('child_process').spawn;
|
|
|
|
var options = {
|
|
cwd: common.fixturesDir
|
|
};
|
|
var child = spawn(process.execPath, ['-e', 'require("foo")'], options);
|
|
child.on('exit', function(code) {
|
|
assert.equal(code, 0);
|
|
});
|
|
|