()
| 2191 | class DelayedGuard { |
| 2192 | static delayedExecutions = 0; |
| 2193 | canMatch() { |
| 2194 | return of(true).pipe( |
| 2195 | switchMap((v) => new Promise((r) => setTimeout(r, 10)).then(() => v)), |
| 2196 | tap(() => { |
| 2197 | DelayedGuard.delayedExecutions++; |
| 2198 | }), |
| 2199 | ); |
| 2200 | } |
| 2201 | } |
| 2202 | const router = TestBed.inject(Router); |
| 2203 | const delayedGuardSpy = spyOn(TestBed.inject(DelayedGuard), 'canMatch'); |
nothing calls this directly
no test coverage detected