Skip to content
Closed
Next Next commit
test, module: current directory gets priority for local module lookup
  • Loading branch information
rakshith_bellare@outlook.com authored and rakshith_bellare@outlook.com committed May 4, 2018
commit 73fb06d097b4b632a19a6bcb4607f344030a7c01
8 changes: 4 additions & 4 deletions test/parallel/test-module-relative-lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const _module = require('module'); // avoid collision with global.module
const lookupResults = _module._resolveLookupPaths('./lodash');
let paths = lookupResults[1];

assert.strictEqual(paths[0], '.',
'Current directory gets highest priority for local modules');
// Current directory gets highest priority for local modules
assert.strictEqual(paths[0], '.');

paths = _module._resolveLookupPaths('./lodash', null, true);

assert.strictEqual(paths && paths[0], '.',
'Current directory gets highest priority for local modules');
// Current directory gets highest priority for local modules
assert.strictEqual(paths && paths[0], '.');