@@ -22,39 +22,39 @@ describe("path-to-regexp", () => {
22
22
it ( "should throw on unbalanced group" , ( ) => {
23
23
expect ( ( ) => parse ( "/{:foo," ) ) . toThrow (
24
24
new TypeError (
25
- "Unexpected END at index 7, expected }: /{:foo,; visit https://git.new/pathToRegexpError for more info" ,
25
+ "Unexpected END at index 7, expected }: /{:foo,; visit https://git.new/pathToRegexpError for info" ,
26
26
) ,
27
27
) ;
28
28
} ) ;
29
29
30
30
it ( "should throw on nested unbalanced group" , ( ) => {
31
31
expect ( ( ) => parse ( "/{:foo/{x,y}" ) ) . toThrow (
32
32
new TypeError (
33
- "Unexpected END at index 12, expected }: /{:foo/{x,y}; visit https://git.new/pathToRegexpError for more info" ,
33
+ "Unexpected END at index 12, expected }: /{:foo/{x,y}; visit https://git.new/pathToRegexpError for info" ,
34
34
) ,
35
35
) ;
36
36
} ) ;
37
37
38
38
it ( "should throw on missing param name" , ( ) => {
39
39
expect ( ( ) => parse ( "/:/" ) ) . toThrow (
40
40
new TypeError (
41
- "Missing parameter name at index 2: /:/; visit https://git.new/pathToRegexpError for more info" ,
41
+ "Missing parameter name at index 2: /:/; visit https://git.new/pathToRegexpError for info" ,
42
42
) ,
43
43
) ;
44
44
} ) ;
45
45
46
46
it ( "should throw on missing wildcard name" , ( ) => {
47
47
expect ( ( ) => parse ( "/*/" ) ) . toThrow (
48
48
new TypeError (
49
- "Missing parameter name at index 2: /*/; visit https://git.new/pathToRegexpError for more info" ,
49
+ "Missing parameter name at index 2: /*/; visit https://git.new/pathToRegexpError for info" ,
50
50
) ,
51
51
) ;
52
52
} ) ;
53
53
54
54
it ( "should throw on unterminated quote" , ( ) => {
55
55
expect ( ( ) => parse ( '/:"foo' ) ) . toThrow (
56
56
new TypeError (
57
- 'Unterminated quote at index 2: /:"foo; visit https://git.new/pathToRegexpError for more info' ,
57
+ 'Unterminated quote at index 2: /:"foo; visit https://git.new/pathToRegexpError for info' ,
58
58
) ,
59
59
) ;
60
60
} ) ;
@@ -106,7 +106,7 @@ describe("path-to-regexp", () => {
106
106
it ( "should throw when missing text between params" , ( ) => {
107
107
expect ( ( ) => pathToRegexp ( "/:foo:bar" ) ) . toThrow (
108
108
new TypeError (
109
- 'Missing text before "bar": /:foo:bar; visit https://git.new/pathToRegexpError for more info' ,
109
+ 'Missing text before "bar": /:foo:bar; visit https://git.new/pathToRegexpError for info' ,
110
110
) ,
111
111
) ;
112
112
} ) ;
@@ -121,7 +121,7 @@ describe("path-to-regexp", () => {
121
121
) ,
122
122
) . toThrow (
123
123
new TypeError (
124
- 'Missing text before "b"; visit https://git.new/pathToRegexpError for more info' ,
124
+ 'Missing text before "b"; visit https://git.new/pathToRegexpError for info' ,
125
125
) ,
126
126
) ;
127
127
} ) ;
@@ -139,7 +139,7 @@ describe("path-to-regexp", () => {
139
139
) ,
140
140
) . toThrow (
141
141
new TypeError (
142
- 'Missing text before "b": /[a][b]; visit https://git.new/pathToRegexpError for more info' ,
142
+ 'Missing text before "b": /[a][b]; visit https://git.new/pathToRegexpError for info' ,
143
143
) ,
144
144
) ;
145
145
} ) ;
0 commit comments