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

Class ConfigurableGuard

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

InjectableInterface · 0.90

Tested by

no test coverage detected