()
| 2251 | class DelayedGuard { |
| 2252 | static delayedExecutions = 0; |
| 2253 | canMatch() { |
| 2254 | return of(true).pipe( |
| 2255 | switchMap((v) => new Promise((r) => setTimeout(r, 10)).then(() => v)), |
| 2256 | tap(() => { |
| 2257 | DelayedGuard.delayedExecutions++; |
| 2258 | }), |
| 2259 | ); |
| 2260 | } |
| 2261 | } |
| 2262 | const router = TestBed.inject(Router); |
| 2263 | const delayedGuardSpy = spyOn(TestBed.inject(DelayedGuard), 'canMatch'); |
nothing calls this directly
no test coverage detected