diff options
Diffstat (limited to 'deps/npm/test/tap/install-at-locally.js')
-rw-r--r-- | deps/npm/test/tap/install-at-locally.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/npm/test/tap/install-at-locally.js b/deps/npm/test/tap/install-at-locally.js index 8745c4d60e..fa0190ceb3 100644 --- a/deps/npm/test/tap/install-at-locally.js +++ b/deps/npm/test/tap/install-at-locally.js @@ -10,7 +10,7 @@ var common = require('../common-tap.js') var pkg = path.join(__dirname, 'install-at-locally') -var EXEC_OPTS = { cwd: pkg } +var EXEC_OPTS = { cwd: pkg, stdio: [0, 1, 2] } var json = { name: 'install-at-locally-mock', @@ -26,8 +26,8 @@ test('\'npm install ./package@1.2.3\' should install local pkg', function (t) { var target = './package@1.2.3' setup(target) common.npm(['install', '--loglevel=silent', target], EXEC_OPTS, function (err, code) { + if (err) throw err var p = path.resolve(pkg, 'node_modules/install-at-locally-mock/package.json') - t.ifError(err, 'install local package successful') t.equal(code, 0, 'npm install exited with code') t.ok(JSON.parse(fs.readFileSync(p, 'utf8'))) t.end() @@ -38,8 +38,8 @@ test('\'npm install install/at/locally@./package@1.2.3\' should install local pk var target = 'install/at/locally@./package@1.2.3' setup(target) common.npm(['install', target], EXEC_OPTS, function (err, code) { + if (err) throw err var p = path.resolve(pkg, 'node_modules/install-at-locally-mock/package.json') - t.ifError(err, 'install local package in explicit directory successful') t.equal(code, 0, 'npm install exited with code') t.ok(JSON.parse(fs.readFileSync(p, 'utf8'))) t.end() |