(path: string)
| 123 | }); |
| 124 | |
| 125 | export const normalizePath = (path: string): string => { |
| 126 | if (path[0] === '/') { |
| 127 | return path.substring(1); |
| 128 | } |
| 129 | return path; |
| 130 | }; |
| 131 | |
| 132 | export const getBaseUrlAfterRedirects = (url: string, router: Router): string => { |
| 133 | const route = router.parseUrl(url); |
no outgoing calls
no test coverage detected