summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/outdated-new-versions.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/outdated-new-versions.js')
-rw-r--r--deps/npm/test/tap/outdated-new-versions.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/npm/test/tap/outdated-new-versions.js b/deps/npm/test/tap/outdated-new-versions.js
index c6fbd426dc..bfd63e18c3 100644
--- a/deps/npm/test/tap/outdated-new-versions.js
+++ b/deps/npm/test/tap/outdated-new-versions.js
@@ -36,11 +36,14 @@ test('setup', function (t) {
test('dicovers new versions in outdated', function (t) {
process.chdir(pkg)
- t.plan(2)
+ t.plan(4)
mr({ port: common.port }, function (er, s) {
npm.load({ cache: cache, registry: common.registry }, function () {
npm.outdated(function (er, d) {
+ t.ifError(er, 'npm outdated completed successfully')
+ t.is(process.exitCode, 1, 'exitCode set to 1')
+ process.exitCode = 0
for (var i = 0; i < d.length; i++) {
if (d[i][1] === 'underscore') t.equal('1.5.1', d[i][4])
if (d[i][1] === 'request') t.equal('2.27.0', d[i][4])