diff options
author | Daijiro Wachi <daijiro.wachi@gmail.com> | 2017-04-04 10:27:18 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-04-21 02:18:39 +0300 |
commit | 9c860f2ed3bdea1417ed059b019371cd253db2ad (patch) | |
tree | 993cc9517acc04e71bb942d806212ee673a89b2e /test | |
parent | f08c663231099f7036eb82b92770806a3a79cdf1 (diff) |
doctor: do not crash w/ registries that do not support ping
If registry doesn't support ping, npm doctor should display
the information instead of stopping its investigation.
Credit: @watilde
PR-URL: https://github.com/npm/npm/pull/16021
Reviewed-By: @iarna
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/doctor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tap/doctor.js b/test/tap/doctor.js index 5cdffb2bd..573bd9e23 100644 --- a/test/tap/doctor.js +++ b/test/tap/doctor.js @@ -51,7 +51,7 @@ test('npm doctor', function (t) { npm.commands.doctor({'node-url': node_url}, true, function (e, list) { t.ifError(e, 'npm loaded successfully') t.same(list.length, 9, 'list should have 9 prop') - t.same(list[0][1], 'ok', 'npm ping') + t.same(list[0][1], 'OK', 'npm ping') t.same(list[1][1], 'v' + npm.version, 'npm -v') t.same(list[2][1], process.version, 'node -v') t.same(list[3][1], common.registry + '/', 'npm config get registry') |