node/test/fixtures/node_modules/baz/index.js
Gibson Fahnestock 6f85c81f0d
test: s/assert.equal/assert.strictEqual/
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>
2017-04-18 20:01:52 -04:00

10 lines
391 B
JavaScript

console.error(__filename);
console.error(module.paths.join('\n') + '\n');
// this should work, and get the one that doesn't throw
const assert = require('assert');
assert.strictEqual(require('bar'), require('../bar.js'));
// this should work, and get the one in ./node_modules/asdf.js
assert.strictEqual(require('asdf'), require('./node_modules/asdf.js'));
module.exports = 'eye catcher';