(s: any, g: any, r: any)
| 1404 | describe('custom path matchers', () => { |
| 1405 | it('should use custom path matcher', async () => { |
| 1406 | const matcher = (s: any, g: any, r: any) => { |
| 1407 | if (s[0].path === 'a') { |
| 1408 | return {consumed: s.slice(0, 2), posParams: {id: s[1]}}; |
| 1409 | } else { |
| 1410 | return null; |
| 1411 | } |
| 1412 | }; |
| 1413 | |
| 1414 | await checkRedirect( |
| 1415 | [ |