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

Function guard4

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

Source from the content-addressed store, hash-verified

2498 tap(() => guardDone.push('guard3')),
2499 );
2500 const guard4: CanActivateFn = () =>
2501 of(true).pipe(
2502 switchMap((v) => new Promise((r) => setTimeout(r, 6)).then(() => v)),
2503 tap(() => guardDone.push('guard4')),
2504 );
2505 const router = TestBed.inject(Router);
2506 router.resetConfig([
2507 {

Callers

nothing calls this directly

Calls 3

setTimeoutFunction · 0.85
thenMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected