Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test, module: current directory gets priority for local module lookup #20545

Closed
wants to merge 8 commits into from
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], '.');