MCPcopy
hub / github.com/angular/angular / checkResolveData

Function checkResolveData

packages/router/test/router.spec.ts:888–903  ·  view source on GitHub ↗
(
  future: RouterStateSnapshot,
  curr: RouterStateSnapshot,
  injector: EnvironmentInjector,
  check: any,
)

Source from the content-addressed store, hash-verified

886});
887
888function 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
905function checkGuards(
906 future: RouterStateSnapshot,

Callers 1

router.spec.tsFile · 0.85

Calls 2

getAllRouteGuardsFunction · 0.90
subscribeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…