summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/outdated-private.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/outdated-private.js')
-rw-r--r--deps/npm/test/tap/outdated-private.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/npm/test/tap/outdated-private.js b/deps/npm/test/tap/outdated-private.js
index 1d5e460c6e..39bd6f1ac9 100644
--- a/deps/npm/test/tap/outdated-private.js
+++ b/deps/npm/test/tap/outdated-private.js
@@ -52,7 +52,7 @@ test('setup', function (t) {
})
test('outdated ignores private modules', function (t) {
- t.plan(3)
+ t.plan(4)
process.chdir(pkg)
mr({ port: common.port }, function (er, s) {
npm.load(
@@ -66,7 +66,9 @@ test('outdated ignores private modules', function (t) {
t.ifError(err, 'install success')
bumpLocalPrivate()
npm.outdated(function (er, d) {
- t.ifError(er, 'outdated success')
+ t.ifError(err, 'npm outdated ran without error')
+ t.is(process.exitCode, 1, 'exitCode set to 1')
+ process.exitCode = 0
t.deepEqual(d, [[
path.resolve(__dirname, 'outdated-private'),
'underscore',