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