@@ -89,7 +89,7 @@ t.test('all clear', async t => {
89
89
...dirs ,
90
90
} )
91
91
tnock ( t , npm . config . get ( 'registry' ) )
92
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
92
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
93
93
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
94
94
tnock ( t , 'https://nodejs.org' )
95
95
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -108,7 +108,7 @@ t.test('all clear in color', async t => {
108
108
} ,
109
109
} )
110
110
tnock ( t , npm . config . get ( 'registry' ) )
111
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
111
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
112
112
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
113
113
tnock ( t , 'https://nodejs.org' )
114
114
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -127,7 +127,7 @@ t.test('silent success', async t => {
127
127
...dirs ,
128
128
} )
129
129
tnock ( t , npm . config . get ( 'registry' ) )
130
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
130
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
131
131
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
132
132
tnock ( t , 'https://nodejs.org' )
133
133
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -146,7 +146,7 @@ t.test('silent errors', async t => {
146
146
...dirs ,
147
147
} )
148
148
tnock ( t , npm . config . get ( 'registry' ) )
149
- . get ( '/-/ping?write=true ' ) . reply ( 404 , '{}' )
149
+ . get ( '/-/ping' ) . reply ( 404 , '{}' )
150
150
await t . rejects ( npm . exec ( 'doctor' , [ 'ping' ] ) , {
151
151
message : / C h e c k l o g s / ,
152
152
} )
@@ -161,7 +161,7 @@ t.test('ping 404', async t => {
161
161
...dirs ,
162
162
} )
163
163
tnock ( t , npm . config . get ( 'registry' ) )
164
- . get ( '/-/ping?write=true ' ) . reply ( 404 , '{}' )
164
+ . get ( '/-/ping' ) . reply ( 404 , '{}' )
165
165
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
166
166
tnock ( t , 'https://nodejs.org' )
167
167
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -182,7 +182,7 @@ t.test('ping 404 in color', async t => {
182
182
} ,
183
183
} )
184
184
tnock ( t , npm . config . get ( 'registry' ) )
185
- . get ( '/-/ping?write=true ' ) . reply ( 404 , '{}' )
185
+ . get ( '/-/ping' ) . reply ( 404 , '{}' )
186
186
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
187
187
tnock ( t , 'https://nodejs.org' )
188
188
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -198,7 +198,7 @@ t.test('ping exception with code', async t => {
198
198
...dirs ,
199
199
} )
200
200
tnock ( t , npm . config . get ( 'registry' ) )
201
- . get ( '/-/ping?write=true ' ) . replyWithError ( { message : 'Test Error' , code : 'TEST' } )
201
+ . get ( '/-/ping' ) . replyWithError ( { message : 'Test Error' , code : 'TEST' } )
202
202
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
203
203
tnock ( t , 'https://nodejs.org' )
204
204
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -214,7 +214,7 @@ t.test('ping exception without code', async t => {
214
214
...dirs ,
215
215
} )
216
216
tnock ( t , npm . config . get ( 'registry' ) )
217
- . get ( '/-/ping?write=true ' ) . replyWithError ( { message : 'Test Error' , code : false } )
217
+ . get ( '/-/ping' ) . replyWithError ( { message : 'Test Error' , code : false } )
218
218
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
219
219
tnock ( t , 'https://nodejs.org' )
220
220
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -230,7 +230,7 @@ t.test('npm out of date', async t => {
230
230
...dirs ,
231
231
} )
232
232
tnock ( t , npm . config . get ( 'registry' ) )
233
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
233
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
234
234
. get ( '/npm' ) . reply ( 200 , npmManifest ( '2.0.0' ) )
235
235
tnock ( t , 'https://nodejs.org' )
236
236
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -255,7 +255,7 @@ t.test('node out of date - lts', async t => {
255
255
...dirs ,
256
256
} )
257
257
tnock ( t , npm . config . get ( 'registry' ) )
258
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
258
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
259
259
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
260
260
tnock ( t , 'https://nodejs.org' )
261
261
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -280,7 +280,7 @@ t.test('node out of date - current', async t => {
280
280
...dirs ,
281
281
} )
282
282
tnock ( t , npm . config . get ( 'registry' ) )
283
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
283
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
284
284
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
285
285
tnock ( t , 'https://nodejs.org' )
286
286
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -297,7 +297,7 @@ t.test('non-default registry', async t => {
297
297
...dirs ,
298
298
} )
299
299
tnock ( t , npm . config . get ( 'registry' ) )
300
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
300
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
301
301
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
302
302
tnock ( t , 'https://nodejs.org' )
303
303
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -318,7 +318,7 @@ t.test('missing git', async t => {
318
318
...dirs ,
319
319
} )
320
320
tnock ( t , npm . config . get ( 'registry' ) )
321
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
321
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
322
322
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
323
323
tnock ( t , 'https://nodejs.org' )
324
324
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -344,7 +344,7 @@ t.test('windows skips permissions checks', async t => {
344
344
globalPrefixDir : { } ,
345
345
} )
346
346
tnock ( t , npm . config . get ( 'registry' ) )
347
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
347
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
348
348
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
349
349
tnock ( t , 'https://nodejs.org' )
350
350
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -361,7 +361,7 @@ t.test('missing global directories', async t => {
361
361
globalPrefixDir : { } ,
362
362
} )
363
363
tnock ( t , npm . config . get ( 'registry' ) )
364
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
364
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
365
365
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
366
366
tnock ( t , 'https://nodejs.org' )
367
367
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -377,7 +377,7 @@ t.test('missing local node_modules', async t => {
377
377
globalPrefixDir : dirs . globalPrefixDir ,
378
378
} )
379
379
tnock ( t , npm . config . get ( 'registry' ) )
380
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
380
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
381
381
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
382
382
tnock ( t , 'https://nodejs.org' )
383
383
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -406,7 +406,7 @@ t.test('incorrect owner', async t => {
406
406
...dirs ,
407
407
} )
408
408
tnock ( t , npm . config . get ( 'registry' ) )
409
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
409
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
410
410
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
411
411
tnock ( t , 'https://nodejs.org' )
412
412
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -430,7 +430,7 @@ t.test('incorrect permissions', async t => {
430
430
...dirs ,
431
431
} )
432
432
tnock ( t , npm . config . get ( 'registry' ) )
433
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
433
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
434
434
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
435
435
tnock ( t , 'https://nodejs.org' )
436
436
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -458,7 +458,7 @@ t.test('error reading directory', async t => {
458
458
...dirs ,
459
459
} )
460
460
tnock ( t , npm . config . get ( 'registry' ) )
461
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
461
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
462
462
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
463
463
tnock ( t , 'https://nodejs.org' )
464
464
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -481,7 +481,7 @@ t.test('cacache badContent', async t => {
481
481
...dirs ,
482
482
} )
483
483
tnock ( t , npm . config . get ( 'registry' ) )
484
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
484
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
485
485
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
486
486
tnock ( t , 'https://nodejs.org' )
487
487
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -504,7 +504,7 @@ t.test('cacache reclaimedCount', async t => {
504
504
...dirs ,
505
505
} )
506
506
tnock ( t , npm . config . get ( 'registry' ) )
507
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
507
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
508
508
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
509
509
tnock ( t , 'https://nodejs.org' )
510
510
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -527,7 +527,7 @@ t.test('cacache missingContent', async t => {
527
527
...dirs ,
528
528
} )
529
529
tnock ( t , npm . config . get ( 'registry' ) )
530
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
530
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
531
531
. get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
532
532
tnock ( t , 'https://nodejs.org' )
533
533
. get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -558,7 +558,7 @@ t.test('discrete checks', t => {
558
558
...dirs ,
559
559
} )
560
560
tnock ( t , npm . config . get ( 'registry' ) )
561
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
561
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
562
562
await npm . exec ( 'doctor' , [ 'ping' ] )
563
563
t . matchSnapshot ( joinedOutput ( ) , 'output' )
564
564
t . matchSnapshot ( { info : logs . info , warn : logs . warn , error : logs . error } , 'logs' )
@@ -586,7 +586,7 @@ t.test('discrete checks', t => {
586
586
...dirs ,
587
587
} )
588
588
tnock ( t , npm . config . get ( 'registry' ) )
589
- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
589
+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
590
590
await npm . exec ( 'doctor' , [ 'registry' ] )
591
591
t . matchSnapshot ( joinedOutput ( ) , 'output' )
592
592
t . matchSnapshot ( { info : logs . info , warn : logs . warn , error : logs . error } , 'logs' )
0 commit comments