MCPcopy Create free account
hub / github.com/angular/angular / guard4

Function guard4

packages/router/test/integration/guards.spec.ts:2532–2536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2530 tap(() => guardDone.push('guard3')),
2531 );
2532 const guard4: CanActivateFn = () =>
2533 of(true).pipe(
2534 switchMap((v) => new Promise((r) => setTimeout(r, 6)).then(() => v)),
2535 tap(() => guardDone.push('guard4')),
2536 );
2537 const router = TestBed.inject(Router);
2538 router.resetConfig([
2539 {

Callers

nothing calls this directly

Calls 3

setTimeoutFunction · 0.85
thenMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected