@@ -181,7 +181,7 @@ test('Method already declared', t => {
181181 findMyWay . on ( 'GET' , '/test' , ( ) => { } )
182182 t . fail ( 'method already declared' )
183183 } 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\'' )
185185 }
186186} )
187187
@@ -198,14 +198,14 @@ test('Method already declared [ignoreTrailingSlash=true]', t => {
198198 findMyWay . on ( 'GET' , '/test' , ( ) => { } )
199199 t . fail ( 'method already declared' )
200200 } 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\'' )
202202 }
203203
204204 try {
205205 findMyWay . on ( 'GET' , '/test/' , ( ) => { } )
206206 t . fail ( 'method already declared' )
207207 } 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/\'' )
209209 }
210210 } )
211211
@@ -219,14 +219,14 @@ test('Method already declared [ignoreTrailingSlash=true]', t => {
219219 findMyWay . on ( 'GET' , '/test' , ( ) => { } )
220220 t . fail ( 'method already declared' )
221221 } 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\'' )
223223 }
224224
225225 try {
226226 findMyWay . on ( 'GET' , '/test/' , ( ) => { } )
227227 t . fail ( 'method already declared' )
228228 } 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/\'' )
230230 }
231231 } )
232232} )
@@ -243,7 +243,7 @@ test('Method already declared nested route', t => {
243243 findMyWay . on ( 'GET' , '/test/hello' , ( ) => { } )
244244 t . fail ( 'method already delcared in nested route' )
245245 } 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\'' )
247247 }
248248} )
249249
@@ -262,14 +262,14 @@ test('Method already declared nested route [ignoreTrailingSlash=true]', t => {
262262 findMyWay . on ( 'GET' , '/test/hello' , ( ) => { } )
263263 t . fail ( 'method already declared' )
264264 } 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\'' )
266266 }
267267
268268 try {
269269 findMyWay . on ( 'GET' , '/test/hello/' , ( ) => { } )
270270 t . fail ( 'method already declared' )
271271 } 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/\'' )
273273 }
274274 } )
275275
@@ -285,14 +285,14 @@ test('Method already declared nested route [ignoreTrailingSlash=true]', t => {
285285 findMyWay . on ( 'GET' , '/test/hello' , ( ) => { } )
286286 t . fail ( 'method already declared' )
287287 } 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\'' )
289289 }
290290
291291 try {
292292 findMyWay . on ( 'GET' , '/test/hello/' , ( ) => { } )
293293 t . fail ( 'method already declared' )
294294 } 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/\'' )
296296 }
297297 } )
298298} )
0 commit comments