Testing with Q promises

I just ran into an irritating problem with Q and tests. I do not like asynchronous tests - at all. Firstly, they are hard to read. And secondly, you don't need them. Using a mocking framework like sinon.js, you are able to turn your asynchronous flow into synchronous tests…

Read this article