Filter existing search paths instead reimplementing

This commit is contained in:
Kevin Sawicki 2016-06-23 15:27:45 -07:00
parent eed240be1c
commit b273b70eee
2 changed files with 10 additions and 22 deletions

View file

@ -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')
])
})
})