Filter existing search paths instead reimplementing
This commit is contained in:
parent
eed240be1c
commit
b273b70eee
2 changed files with 10 additions and 22 deletions
|
@ -89,8 +89,7 @@ describe('Module._nodeModulePaths', function () {
|
|||
it('includes paths outside of the resources path', function () {
|
||||
let modulePath = path.resolve('/foo')
|
||||
assert.deepEqual(Module._nodeModulePaths(modulePath), [
|
||||
path.join(modulePath, 'node_modules'),
|
||||
path.join('node_modules')
|
||||
path.join(modulePath, 'node_modules')
|
||||
])
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue