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