Browse Source

module search paths have changed

Cheng Zhao 8 years ago
parent
commit
375534cf4a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      spec/modules-spec.js

+ 2 - 1
spec/modules-spec.js

@@ -94,7 +94,8 @@ 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(modulePath, 'node_modules'),
+        path.resolve('/node_modules')
       ])
     })
   })