File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11const { test } = require ( 'tap' )
22const requireInject = require ( 'require-inject' )
33const { EventEmitter } = require ( 'events' )
4+ const path = require ( 'path' )
45
56let npmUsageArg = null
67const npmUsage = ( arg ) => {
@@ -210,7 +211,7 @@ test('npm help 1 install', t => {
210211 if ( err )
211212 throw err
212213
213- t . match ( openUrlArg , / c o m m a n d s \/ n p m - i n s t a l l .h t m l $ / , 'attempts to open the correct url' )
214+ t . match ( openUrlArg , new RegExp ( ` commands${ path . sep } npm-install.html$` ) , 'attempts to open the correct url' )
214215 t . end ( )
215216 } )
216217} )
@@ -233,7 +234,7 @@ test('npm help 5 install', t => {
233234 if ( err )
234235 throw err
235236
236- t . match ( openUrlArg , / c o n f i g u r i n g - n p m \/ i n s t a l l .h t m l $ / , 'attempts to open the correct url' )
237+ t . match ( openUrlArg , new RegExp ( ` configuring-npm${ path . sep } install.html$` ) , 'attempts to open the correct url' )
237238 t . end ( )
238239 } )
239240} )
@@ -255,7 +256,7 @@ test('npm help 7 config', t => {
255256 if ( err )
256257 throw err
257258
258- t . match ( openUrlArg , / u s i n g - n p m \/ c o n f i g .h t m l $ / , 'attempts to open the correct url' )
259+ t . match ( openUrlArg , new RegExp ( ` using-npm${ path . sep } config.html$` ) , 'attempts to open the correct url' )
259260 t . end ( )
260261 } )
261262} )
You can’t perform that action at this time.
0 commit comments