@@ -89,7 +89,7 @@ t.test('all clear', async t => {
8989 ...dirs ,
9090 } )
9191 tnock ( t , npm . config . get ( 'registry' ) )
92- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
92+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
9393 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
9494 tnock ( t , 'https://nodejs.org' )
9595 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -108,7 +108,7 @@ t.test('all clear in color', async t => {
108108 } ,
109109 } )
110110 tnock ( t , npm . config . get ( 'registry' ) )
111- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
111+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
112112 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
113113 tnock ( t , 'https://nodejs.org' )
114114 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -127,7 +127,7 @@ t.test('silent success', async t => {
127127 ...dirs ,
128128 } )
129129 tnock ( t , npm . config . get ( 'registry' ) )
130- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
130+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
131131 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
132132 tnock ( t , 'https://nodejs.org' )
133133 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -146,7 +146,7 @@ t.test('silent errors', async t => {
146146 ...dirs ,
147147 } )
148148 tnock ( t , npm . config . get ( 'registry' ) )
149- . get ( '/-/ping?write=true ' ) . reply ( 404 , '{}' )
149+ . get ( '/-/ping' ) . reply ( 404 , '{}' )
150150 await t . rejects ( npm . exec ( 'doctor' , [ 'ping' ] ) , {
151151 message : / C h e c k l o g s / ,
152152 } )
@@ -161,7 +161,7 @@ t.test('ping 404', async t => {
161161 ...dirs ,
162162 } )
163163 tnock ( t , npm . config . get ( 'registry' ) )
164- . get ( '/-/ping?write=true ' ) . reply ( 404 , '{}' )
164+ . get ( '/-/ping' ) . reply ( 404 , '{}' )
165165 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
166166 tnock ( t , 'https://nodejs.org' )
167167 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -182,7 +182,7 @@ t.test('ping 404 in color', async t => {
182182 } ,
183183 } )
184184 tnock ( t , npm . config . get ( 'registry' ) )
185- . get ( '/-/ping?write=true ' ) . reply ( 404 , '{}' )
185+ . get ( '/-/ping' ) . reply ( 404 , '{}' )
186186 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
187187 tnock ( t , 'https://nodejs.org' )
188188 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -198,7 +198,7 @@ t.test('ping exception with code', async t => {
198198 ...dirs ,
199199 } )
200200 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' } )
202202 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
203203 tnock ( t , 'https://nodejs.org' )
204204 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -214,7 +214,7 @@ t.test('ping exception without code', async t => {
214214 ...dirs ,
215215 } )
216216 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 } )
218218 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
219219 tnock ( t , 'https://nodejs.org' )
220220 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -230,7 +230,7 @@ t.test('npm out of date', async t => {
230230 ...dirs ,
231231 } )
232232 tnock ( t , npm . config . get ( 'registry' ) )
233- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
233+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
234234 . get ( '/npm' ) . reply ( 200 , npmManifest ( '2.0.0' ) )
235235 tnock ( t , 'https://nodejs.org' )
236236 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -255,7 +255,7 @@ t.test('node out of date - lts', async t => {
255255 ...dirs ,
256256 } )
257257 tnock ( t , npm . config . get ( 'registry' ) )
258- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
258+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
259259 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
260260 tnock ( t , 'https://nodejs.org' )
261261 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -280,7 +280,7 @@ t.test('node out of date - current', async t => {
280280 ...dirs ,
281281 } )
282282 tnock ( t , npm . config . get ( 'registry' ) )
283- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
283+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
284284 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
285285 tnock ( t , 'https://nodejs.org' )
286286 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -297,7 +297,7 @@ t.test('non-default registry', async t => {
297297 ...dirs ,
298298 } )
299299 tnock ( t , npm . config . get ( 'registry' ) )
300- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
300+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
301301 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
302302 tnock ( t , 'https://nodejs.org' )
303303 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -318,7 +318,7 @@ t.test('missing git', async t => {
318318 ...dirs ,
319319 } )
320320 tnock ( t , npm . config . get ( 'registry' ) )
321- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
321+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
322322 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
323323 tnock ( t , 'https://nodejs.org' )
324324 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -344,7 +344,7 @@ t.test('windows skips permissions checks', async t => {
344344 globalPrefixDir : { } ,
345345 } )
346346 tnock ( t , npm . config . get ( 'registry' ) )
347- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
347+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
348348 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
349349 tnock ( t , 'https://nodejs.org' )
350350 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -361,7 +361,7 @@ t.test('missing global directories', async t => {
361361 globalPrefixDir : { } ,
362362 } )
363363 tnock ( t , npm . config . get ( 'registry' ) )
364- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
364+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
365365 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
366366 tnock ( t , 'https://nodejs.org' )
367367 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -377,7 +377,7 @@ t.test('missing local node_modules', async t => {
377377 globalPrefixDir : dirs . globalPrefixDir ,
378378 } )
379379 tnock ( t , npm . config . get ( 'registry' ) )
380- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
380+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
381381 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
382382 tnock ( t , 'https://nodejs.org' )
383383 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -406,7 +406,7 @@ t.test('incorrect owner', async t => {
406406 ...dirs ,
407407 } )
408408 tnock ( t , npm . config . get ( 'registry' ) )
409- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
409+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
410410 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
411411 tnock ( t , 'https://nodejs.org' )
412412 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -430,7 +430,7 @@ t.test('incorrect permissions', async t => {
430430 ...dirs ,
431431 } )
432432 tnock ( t , npm . config . get ( 'registry' ) )
433- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
433+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
434434 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
435435 tnock ( t , 'https://nodejs.org' )
436436 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -458,7 +458,7 @@ t.test('error reading directory', async t => {
458458 ...dirs ,
459459 } )
460460 tnock ( t , npm . config . get ( 'registry' ) )
461- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
461+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
462462 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
463463 tnock ( t , 'https://nodejs.org' )
464464 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -481,7 +481,7 @@ t.test('cacache badContent', async t => {
481481 ...dirs ,
482482 } )
483483 tnock ( t , npm . config . get ( 'registry' ) )
484- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
484+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
485485 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
486486 tnock ( t , 'https://nodejs.org' )
487487 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -504,7 +504,7 @@ t.test('cacache reclaimedCount', async t => {
504504 ...dirs ,
505505 } )
506506 tnock ( t , npm . config . get ( 'registry' ) )
507- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
507+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
508508 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
509509 tnock ( t , 'https://nodejs.org' )
510510 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -527,7 +527,7 @@ t.test('cacache missingContent', async t => {
527527 ...dirs ,
528528 } )
529529 tnock ( t , npm . config . get ( 'registry' ) )
530- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
530+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
531531 . get ( '/npm' ) . reply ( 200 , npmManifest ( npm . version ) )
532532 tnock ( t , 'https://nodejs.org' )
533533 . get ( '/dist/index.json' ) . reply ( 200 , nodeVersions )
@@ -558,7 +558,7 @@ t.test('discrete checks', t => {
558558 ...dirs ,
559559 } )
560560 tnock ( t , npm . config . get ( 'registry' ) )
561- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
561+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
562562 await npm . exec ( 'doctor' , [ 'ping' ] )
563563 t . matchSnapshot ( joinedOutput ( ) , 'output' )
564564 t . matchSnapshot ( { info : logs . info , warn : logs . warn , error : logs . error } , 'logs' )
@@ -586,7 +586,7 @@ t.test('discrete checks', t => {
586586 ...dirs ,
587587 } )
588588 tnock ( t , npm . config . get ( 'registry' ) )
589- . get ( '/-/ping?write=true ' ) . reply ( 200 , '{}' )
589+ . get ( '/-/ping' ) . reply ( 200 , '{}' )
590590 await npm . exec ( 'doctor' , [ 'registry' ] )
591591 t . matchSnapshot ( joinedOutput ( ) , 'output' )
592592 t . matchSnapshot ( { info : logs . info , warn : logs . warn , error : logs . error } , 'logs' )
0 commit comments