mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
351 B
11 lines
351 B
9 years ago
|
'use strict';
|
||
|
|
||
|
require('../common');
|
||
|
const assert = require('assert');
|
||
|
const _module = require('module'); // avoid collision with global.module
|
||
|
const lookupResults = _module._resolveLookupPaths('./lodash');
|
||
|
const paths = lookupResults[1];
|
||
|
|
||
|
assert.strictEqual(paths[0], '.',
|
||
|
'Current directory is prioritized before node_modules for local modules');
|