( future: RouterStateSnapshot, curr: RouterStateSnapshot, injector: EnvironmentInjector, check: any, )
| 886 | }); |
| 887 | |
| 888 | function checkResolveData( |
| 889 | future: RouterStateSnapshot, |
| 890 | curr: RouterStateSnapshot, |
| 891 | injector: EnvironmentInjector, |
| 892 | check: any, |
| 893 | ): void { |
| 894 | // Since we only test the guards and their resolve data function, we don't need to provide |
| 895 | // a full navigation transition object with all properties set. |
| 896 | of({ |
| 897 | guards: getAllRouteGuards(future, curr, new ChildrenOutletContexts(injector)), |
| 898 | } as NavigationTransition) |
| 899 | .pipe(resolveDataOperator('emptyOnly')) |
| 900 | .subscribe(check, (e) => { |
| 901 | throw e; |
| 902 | }); |
| 903 | } |
| 904 | |
| 905 | function checkGuards( |
| 906 | future: RouterStateSnapshot, |
no test coverage detected
searching dependent graphs…