From documentation we can read:
waitForAsync(fn: Function): (done: any) => any
Wraps a test function in an asynchronous test zone. The test will automatically complete when all asynchronous calls within this zone are done. Can be used to wrap an inject call.
I could not understand, when to use waitForAsync
function? What's the difference between waitForAsync
vs (async
or fakeAsync
)?
waitForAsync
method which is not described in article which you posted – Ferromagnesian