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

Class ConfigurableGuard

packages/router/test/integration/guards.spec.ts:2086–2093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2084
2085 describe('canMatch', () => {
2086 @Injectable({providedIn: 'root'})
2087 class ConfigurableGuard {
2088 result: Promise<boolean | UrlTree> | Observable<boolean | UrlTree> | boolean | UrlTree =
2089 false;
2090 canMatch() {
2091 return this.result;
2092 }
2093 }
2094
2095 it('falls back to second route when canMatch returns false', async () => {
2096 const router = TestBed.inject(Router);

Callers

nothing calls this directly

Calls 1

InjectableInterface · 0.90

Tested by

no test coverage detected