• 概要
@angular/core/testing

DeferBlockFixture

Class
stable

Represents an individual defer block for testing purposes.

API

    
      class DeferBlockFixture {  render(state: DeferBlockState): Promise<void>;  getDeferBlocks(): Promise<DeferBlockFixture[]>;}
    
    

render

Promise<void>

Renders the specified state of the defer fixture.

@paramstateDeferBlockState

the defer state to render

@returnsPromise<void>

getDeferBlocks

Promise<DeferBlockFixture[]>

Retrieves all nested child defer block fixtures in a given defer block.

@returnsPromise<DeferBlockFixture[]>
Jump to details