MCPcopy Create free account
hub / github.com/angular/angular / getDeferBlocks

Method getDeferBlocks

packages/core/testing/src/fixture.ts:288–299  ·  view source on GitHub ↗

* Retrieves all defer block fixtures in the component fixture.

()

Source from the content-addressed store, hash-verified

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/**

Callers

nothing calls this directly

Calls 3

resolveMethod · 0.65
getDeferBlocksFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected