@@ -181,7 +181,7 @@ test('Method already declared', t => {
181
181
findMyWay . on ( 'GET' , '/test' , ( ) => { } )
182
182
t . fail ( 'method already declared' )
183
183
} catch ( e ) {
184
- t . is ( e . message , ` Method 'GET' already declared for route '/test'` )
184
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test\'' )
185
185
}
186
186
} )
187
187
@@ -198,14 +198,14 @@ test('Method already declared [ignoreTrailingSlash=true]', t => {
198
198
findMyWay . on ( 'GET' , '/test' , ( ) => { } )
199
199
t . fail ( 'method already declared' )
200
200
} catch ( e ) {
201
- t . is ( e . message , ` Method 'GET' already declared for route '/test'` )
201
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test\'' )
202
202
}
203
203
204
204
try {
205
205
findMyWay . on ( 'GET' , '/test/' , ( ) => { } )
206
206
t . fail ( 'method already declared' )
207
207
} catch ( e ) {
208
- t . is ( e . message , ` Method 'GET' already declared for route '/test/'` )
208
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test/\'' )
209
209
}
210
210
} )
211
211
@@ -219,14 +219,14 @@ test('Method already declared [ignoreTrailingSlash=true]', t => {
219
219
findMyWay . on ( 'GET' , '/test' , ( ) => { } )
220
220
t . fail ( 'method already declared' )
221
221
} catch ( e ) {
222
- t . is ( e . message , ` Method 'GET' already declared for route '/test'` )
222
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test\'' )
223
223
}
224
224
225
225
try {
226
226
findMyWay . on ( 'GET' , '/test/' , ( ) => { } )
227
227
t . fail ( 'method already declared' )
228
228
} catch ( e ) {
229
- t . is ( e . message , ` Method 'GET' already declared for route '/test/'` )
229
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test/\'' )
230
230
}
231
231
} )
232
232
} )
@@ -243,7 +243,7 @@ test('Method already declared nested route', t => {
243
243
findMyWay . on ( 'GET' , '/test/hello' , ( ) => { } )
244
244
t . fail ( 'method already delcared in nested route' )
245
245
} catch ( e ) {
246
- t . is ( e . message , ` Method 'GET' already declared for route '/test/hello'` )
246
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test/hello\'' )
247
247
}
248
248
} )
249
249
@@ -262,14 +262,14 @@ test('Method already declared nested route [ignoreTrailingSlash=true]', t => {
262
262
findMyWay . on ( 'GET' , '/test/hello' , ( ) => { } )
263
263
t . fail ( 'method already declared' )
264
264
} catch ( e ) {
265
- t . is ( e . message , ` Method 'GET' already declared for route '/test/hello'` )
265
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test/hello\'' )
266
266
}
267
267
268
268
try {
269
269
findMyWay . on ( 'GET' , '/test/hello/' , ( ) => { } )
270
270
t . fail ( 'method already declared' )
271
271
} catch ( e ) {
272
- t . is ( e . message , ` Method 'GET' already declared for route '/test/hello/'` )
272
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test/hello/\'' )
273
273
}
274
274
} )
275
275
@@ -285,14 +285,14 @@ test('Method already declared nested route [ignoreTrailingSlash=true]', t => {
285
285
findMyWay . on ( 'GET' , '/test/hello' , ( ) => { } )
286
286
t . fail ( 'method already declared' )
287
287
} catch ( e ) {
288
- t . is ( e . message , ` Method 'GET' already declared for route '/test/hello'` )
288
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test/hello\'' )
289
289
}
290
290
291
291
try {
292
292
findMyWay . on ( 'GET' , '/test/hello/' , ( ) => { } )
293
293
t . fail ( 'method already declared' )
294
294
} catch ( e ) {
295
- t . is ( e . message , ` Method 'GET' already declared for route '/test/hello/'` )
295
+ t . is ( e . message , ' Method \ 'GET\ ' already declared for route \ '/test/hello/\'' )
296
296
}
297
297
} )
298
298
} )
0 commit comments