@@ -52,14 +52,14 @@ describe('assertIsValidSnapId', () => {
5252 // TODO: Either fix this lint violation or explain why it's necessary to
5353 // ignore.
5454 // eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-base-to-string
55- `Invalid snap ID: Expected the value to satisfy a union of \`intersection | string \`, but received: ${ value } .` ,
55+ `Invalid snap ID: Expected the value to satisfy a union of \`intersection | Base Snap Id \`, but received: ${ value } .` ,
5656 ) ;
5757 } ,
5858 ) ;
5959
6060 it ( 'throws for invalid snap id' , ( ) => {
6161 expect ( ( ) => assertIsValidSnapId ( 'foo:bar' ) ) . toThrow (
62- `Invalid snap ID: Expected the value to satisfy a union of \`intersection | string \`, but received: "foo:bar".` ,
62+ `Invalid snap ID: Expected the value to satisfy a union of \`intersection | Base Snap Id \`, but received: "foo:bar".` ,
6363 ) ;
6464 } ) ;
6565
@@ -82,15 +82,15 @@ describe('assertIsValidSnapId', () => {
8282 'local:http://localhost:8000\r' ,
8383 ] ) ( 'disallows whitespace #%#' , ( value ) => {
8484 expect ( ( ) => assertIsValidSnapId ( value ) ) . toThrow (
85- / I n v a l i d s n a p I D : E x p e c t e d t h e v a l u e t o s a t i s f y a u n i o n o f ` i n t e r s e c t i o n \| s t r i n g ` , b u t r e c e i v e d : .+ \. / u,
85+ / I n v a l i d s n a p I D : E x p e c t e d t h e v a l u e t o s a t i s f y a u n i o n o f ` i n t e r s e c t i o n \| B a s e S n a p I d ` , b u t r e c e i v e d : .+ \. / u,
8686 ) ;
8787 } ) ;
8888
8989 it . each ( [ 'local:😎' , 'local:␡' ] ) (
9090 'disallows non-ASCII symbols #%#' ,
9191 ( value ) => {
9292 expect ( ( ) => assertIsValidSnapId ( value ) ) . toThrow (
93- `Invalid snap ID: Expected the value to satisfy a union of \`intersection | string \`, but received: "${ value } ".` ,
93+ `Invalid snap ID: Expected the value to satisfy a union of \`intersection | Base Snap Id \`, but received: "${ value } ".` ,
9494 ) ;
9595 } ,
9696 ) ;
0 commit comments