* Retrieves all defer block fixtures in the component fixture.
()
| 286 | * Retrieves all defer block fixtures in the component fixture. |
| 287 | */ |
| 288 | getDeferBlocks(): Promise<DeferBlockFixture[]> { |
| 289 | const deferBlocks: DeferBlockDetails[] = []; |
| 290 | const lView = (this.componentRef.hostView as any)['_lView']; |
| 291 | const deferBlockFixtures = []; |
| 292 | getDeferBlocks(lView, deferBlocks); |
| 293 | |
| 294 | for (const block of deferBlocks) { |
| 295 | deferBlockFixtures.push(new DeferBlockFixture(block, this)); |
| 296 | } |
| 297 | |
| 298 | return Promise.resolve(deferBlockFixtures); |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | /** |
nothing calls this directly
no test coverage detected