Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-03-03 21:03:09 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2022-03-10 18:40:11 +0300
commit1c182e11d524294d85348a3c2566f266bd281c00 (patch)
tree95e7419494fee239db6c8e0a0ef239be5db56128 /tap-snapshots/test/lib
parent0da59186e5a78bbcf47c440289241e9f85ff3eba (diff)
fix(doctor): don't retry ping
Diffstat (limited to 'tap-snapshots/test/lib')
-rw-r--r--tap-snapshots/test/lib/commands/doctor.js.test.cjs58
1 files changed, 58 insertions, 0 deletions
diff --git a/tap-snapshots/test/lib/commands/doctor.js.test.cjs b/tap-snapshots/test/lib/commands/doctor.js.test.cjs
index 89599185d..057b6f2e4 100644
--- a/tap-snapshots/test/lib/commands/doctor.js.test.cjs
+++ b/tap-snapshots/test/lib/commands/doctor.js.test.cjs
@@ -121,6 +121,64 @@ Object {
}
`
+exports[`test/lib/commands/doctor.js TAP bad proxy > logs 1`] = `
+Object {
+ "error": Array [],
+ "info": Array [
+ Array [
+ "Running checkup",
+ ],
+ Array [
+ "checkPing",
+ "Pinging registry",
+ ],
+ Array [
+ "getLatestNpmVersion",
+ "Getting npm package information",
+ ],
+ Array [
+ "getLatestNodejsVersion",
+ "Getting Node.js release information",
+ ],
+ Array [
+ "getGitPath",
+ "Finding git in your PATH",
+ ],
+ Array [
+ "verifyCachedFiles",
+ "Verifying the npm cache",
+ ],
+ Array [
+ "verifyCachedFiles",
+ String(
+ Verification complete. Stats: {
+ "badContentCount": 0,
+ "reclaimedCount": 0,
+ "missingContent": 0,
+ "verifiedContent": 0
+ }
+ ),
+ ],
+ ],
+ "warn": Array [],
+}
+`
+
+exports[`test/lib/commands/doctor.js TAP bad proxy > output 1`] = `
+Check Value Recommendation/Notes
+npm ping not ok unsupported proxy protocol: 'ssh:'
+npm -v not ok Error: unsupported proxy protocol: 'ssh:'
+node -v not ok Error: unsupported proxy protocol: 'ssh:'
+npm config get registry ok using default registry (https://registry.npmjs.org/)
+which git ok /path/to/git
+Perms check on cached files ok
+Perms check on local node_modules ok
+Perms check on global node_modules ok
+Perms check on local bin folder ok
+Perms check on global bin folder ok
+Verify cache contents ok verified 0 tarballs
+`
+
exports[`test/lib/commands/doctor.js TAP cacache badContent > corrupted cache content 1`] = `
Check Value Recommendation/Notes
npm ping ok