summaryrefslogtreecommitdiff
path: root/deps/npm/test/lib/commands/ping.js
diff options
context:
space:
mode:
authornpm-robot <ops+robot@npmjs.com>2022-02-07 22:15:05 +0200
committerGitHub <noreply@github.com>2022-02-07 20:15:05 +0000
commitaf7caf8d4746ca527f7fee97b0dea18c026538d0 (patch)
tree732490e8f22597b76993b6b6178d0efd122e3ac8 /deps/npm/test/lib/commands/ping.js
parentf7ff2ff304404751de4f1528d727413f4da930a9 (diff)
downloadnode-new-af7caf8d4746ca527f7fee97b0dea18c026538d0.tar.gz
deps: upgrade npm to 8.4.1
PR-URL: https://github.com/nodejs/node/pull/41836 Reviewed-By: Ruy Adorno <ruyadorno@github.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
Diffstat (limited to 'deps/npm/test/lib/commands/ping.js')
-rw-r--r--deps/npm/test/lib/commands/ping.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/npm/test/lib/commands/ping.js b/deps/npm/test/lib/commands/ping.js
index f808e0ac3b..19ba9d586b 100644
--- a/deps/npm/test/lib/commands/ping.js
+++ b/deps/npm/test/lib/commands/ping.js
@@ -2,12 +2,13 @@ const t = require('tap')
const { fake: mockNpm } = require('../../fixtures/mock-npm')
t.test('pings', async t => {
- t.plan(6)
+ t.plan(7)
const registry = 'https://registry.npmjs.org'
let noticeCalls = 0
const Ping = t.mock('../../../lib/commands/ping.js', {
'../../../lib/utils/ping.js': function (spec) {
+ t.ok(spec.log, 'is passed a logger')
t.equal(spec.registry, registry, 'passes flatOptions')
return {}
},
@@ -35,13 +36,14 @@ t.test('pings', async t => {
})
t.test('pings and logs details', async t => {
- t.plan(8)
+ t.plan(9)
const registry = 'https://registry.npmjs.org'
const details = { extra: 'data' }
let noticeCalls = 0
const Ping = t.mock('../../../lib/commands/ping.js', {
'../../../lib/utils/ping.js': function (spec) {
+ t.ok(spec.log, 'is passed a logger')
t.equal(spec.registry, registry, 'passes flatOptions')
return details
},
@@ -73,13 +75,14 @@ t.test('pings and logs details', async t => {
})
t.test('pings and returns json', async t => {
- t.plan(9)
+ t.plan(10)
const registry = 'https://registry.npmjs.org'
const details = { extra: 'data' }
let noticeCalls = 0
const Ping = t.mock('../../../lib/commands/ping.js', {
'../../../lib/utils/ping.js': function (spec) {
+ t.ok(spec.log, 'is passed a logger')
t.equal(spec.registry, registry, 'passes flatOptions')
return details
},