TBH, I cannot quite recall. I think it’s because Angular’s fakeAsync also makes some attempt to fake promises. Jasmine’s clock does not.

If you have code under test that uses the asapScheduler — with no delay — the action will be scheduled as a micro task — using a Promise — and that will be asynchronous and won’t work with Jasmine’s fake time, etc.

RxJS core team member; front-end developer; mentor; speaker; open-source contributor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store