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

Function advance

packages/router/test/integration/integration_helpers.ts:401–407  ·  view source on GitHub ↗
(
  fixture: ComponentFixture<unknown>,
  millis: number = 1,
)

Source from the content-addressed store, hash-verified

399}
400
401export async function advance(
402 fixture: ComponentFixture<unknown>,
403 millis: number = 1,
404): Promise<void> {
405 await timeout(millis);
406 fixture.detectChanges();
407}
408
409export async function createRoot<T>(router: Router, type: Type<T>): Promise<ComponentFixture<T>> {
410 const f = TestBed.createComponent<T>(type);

Calls 2

timeoutFunction · 0.90
detectChangesMethod · 0.45