(urlSerializer: UrlSerializer)
| 267 | } |
| 268 | |
| 269 | function redirectIfUrlTree(urlSerializer: UrlSerializer): OperatorFunction<GuardResult, boolean> { |
| 270 | return pipe( |
| 271 | tap((result: GuardResult) => { |
| 272 | if (typeof result === 'boolean') return; |
| 273 | |
| 274 | throw redirectingNavigationError(urlSerializer, result); |
| 275 | }), |
| 276 | map((result) => result === true), |
| 277 | ); |
| 278 | } |
| 279 | |
| 280 | export function runCanMatchGuards( |
| 281 | injector: EnvironmentInjector, |
no test coverage detected