From f8bdc7437d445b80f67f36259d2369f5cba765a5 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 8 Sep 2016 15:50:51 +0900 Subject: [PATCH] module search paths have changed --- spec/modules-spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/modules-spec.js b/spec/modules-spec.js index f2c45b0a71..601e40d050 100644 --- a/spec/modules-spec.js +++ b/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') ]) }) })