| 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); |
nothing calls this directly
no test coverage detected