Use assert.strictEqual instead of assert.equal in tests, manually convert types where necessary. Backport-PR-URL: https://github.com/nodejs/node/pull/11795 PR-URL: https://github.com/nodejs/node/pull/10698 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
28 lines
415 B
JavaScript
28 lines
415 B
JavaScript
var d = require('./d');
|
|
|
|
var assert = require('assert');
|
|
|
|
var package = require('./package');
|
|
|
|
assert.strictEqual('world', package.hello);
|
|
|
|
console.error('load fixtures/b/c.js');
|
|
|
|
var string = 'C';
|
|
|
|
exports.SomeClass = function() {
|
|
|
|
};
|
|
|
|
exports.C = function() {
|
|
return string;
|
|
};
|
|
|
|
exports.D = function() {
|
|
return d.D();
|
|
};
|
|
|
|
process.on('exit', function() {
|
|
string = 'C done';
|
|
console.log('b/c.js exit');
|
|
});
|