()
| 1857 | static delayedExecutions = 0; |
| 1858 | static canLoadCalls = 0; |
| 1859 | canLoad() { |
| 1860 | DelayedGuard.canLoadCalls++; |
| 1861 | return of(true).pipe( |
| 1862 | switchMap((v) => new Promise((r) => setTimeout(r, 10)).then(() => v)), |
| 1863 | tap(() => { |
| 1864 | DelayedGuard.delayedExecutions++; |
| 1865 | }), |
| 1866 | ); |
| 1867 | } |
| 1868 | } |
| 1869 | const router = TestBed.inject(Router); |
| 1870 | router.resetConfig([ |
nothing calls this directly
no test coverage detected