File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -171,13 +171,22 @@ t.test('JSR Result object passthrough', t => {
171171 t . end ( )
172172} )
173173
174- t . test ( 'JSR case insensitivity' , t => {
175- const res1 = npa ( 'jsr:@std/testing' )
176- const res2 = npa ( 'JSR:@std/testing' )
177- const res3 = npa ( 'JsR:@std/testing' )
178-
179- t . equal ( res1 . name , '@jsr/std__testing' , 'lowercase jsr: works' )
180- t . equal ( res2 . name , '@jsr/std__testing' , 'uppercase JSR: works' )
181- t . equal ( res3 . name , '@jsr/std__testing' , 'mixed case JsR: works' )
174+ t . test ( 'JSR case sensitivity' , t => {
175+ const res = npa ( 'jsr:@std/testing' )
176+
177+ t . equal ( res . name , '@jsr/std__testing' , 'lowercase jsr: works' )
178+
179+ t . throws (
180+ ( ) => npa ( 'JSR:@std/testing' ) ,
181+ / U n s u p p o r t e d U R L T y p e / ,
182+ 'throws error when package is parsed as unsupported URL type'
183+ )
184+
185+ t . throws (
186+ ( ) => npa ( 'JsR:@std/testing' ) ,
187+ / U n s u p p o r t e d U R L T y p e / ,
188+ 'throws error when package is parsed as unsupported URL type'
189+ )
190+
182191 t . end ( )
183192} )
You can’t perform that action at this time.
0 commit comments