flush

function

npm Package @angular/core
Module import { flush } from '@angular/core/testing';
Source core/testing/src/fake_async.ts

function flush(maxTurns?: number): number;

Description

Simulates the asynchronous passage of time for the timers in the fakeAsync zone by draining the macrotask queue until it is empty. The returned value is the milliseconds of time that would have been elapsed.

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/core/testing/flush