diff options
Diffstat (limited to 'deps/npm/test/tap/outdated-git.js')
-rw-r--r-- | deps/npm/test/tap/outdated-git.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/npm/test/tap/outdated-git.js b/deps/npm/test/tap/outdated-git.js index 1a61a0c4d2..2a595e5288 100644 --- a/deps/npm/test/tap/outdated-git.js +++ b/deps/npm/test/tap/outdated-git.js @@ -31,9 +31,12 @@ test('setup', function (t) { test('discovers new versions in outdated', function (t) { process.chdir(pkg) - t.plan(5) + t.plan(7) npm.load({cache: cache, registry: common.registry, loglevel: 'silent'}, function () { npm.commands.outdated([], function (er, d) { + t.ifError(er, 'npm outdated completed successfully') + t.is(process.exitCode, 1, 'exitCode set to 1') + process.exitCode = 0 t.equal(d[0][3], 'git') t.equal(d[0][4], 'git') t.equal(d[0][5], 'github:robertkowalski/foo') |