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