@@ -15,38 +15,38 @@ describe("path-to-regexp", () => {
15
15
it ( "should throw on unbalanced group" , ( ) => {
16
16
expect ( ( ) => parse ( "/{:foo," ) ) . toThrow (
17
17
new TypeError (
18
- "Unexpected END at 7, expected }: https://git.new/pathToRegexpError" ,
18
+ "Unexpected END at 7, expected }: visit https://git.new/pathToRegexpError for more information. " ,
19
19
) ,
20
20
) ;
21
21
} ) ;
22
22
it ( "should throw on nested unbalanced group" , ( ) => {
23
23
expect ( ( ) => parse ( "/{:foo/{x,y}" ) ) . toThrow (
24
24
new TypeError (
25
- "Unexpected END at 12, expected }: https://git.new/pathToRegexpError" ,
25
+ "Unexpected END at 12, expected }: visit https://git.new/pathToRegexpError for more information. " ,
26
26
) ,
27
27
) ;
28
28
} ) ;
29
29
30
30
it ( "should throw on missing param name" , ( ) => {
31
31
expect ( ( ) => parse ( "/:/" ) ) . toThrow (
32
32
new TypeError (
33
- "Missing parameter name at 2: https://git.new/pathToRegexpError" ,
33
+ "Missing parameter name at 2: visit https://git.new/pathToRegexpError for more information. " ,
34
34
) ,
35
35
) ;
36
36
} ) ;
37
37
38
38
it ( "should throw on missing wildcard name" , ( ) => {
39
39
expect ( ( ) => parse ( "/*/" ) ) . toThrow (
40
40
new TypeError (
41
- "Missing parameter name at 2: https://git.new/pathToRegexpError" ,
41
+ "Missing parameter name at 2: visit https://git.new/pathToRegexpError for more information. " ,
42
42
) ,
43
43
) ;
44
44
} ) ;
45
45
46
46
it ( "should throw on unterminated quote" , ( ) => {
47
47
expect ( ( ) => parse ( '/:"foo' ) ) . toThrow (
48
48
new TypeError (
49
- "Unterminated quote at 2: https://git.new/pathToRegexpError" ,
49
+ "Unterminated quote at 2: visit https://git.new/pathToRegexpError for more information. " ,
50
50
) ,
51
51
) ;
52
52
} ) ;
0 commit comments