Nicholas Jamieson
1 min readOct 27, 2018

--

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.

--

--

Nicholas Jamieson
Nicholas Jamieson

Written by Nicholas Jamieson

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

No responses yet