Unit testing JavaScript with Promises and Jasmine by Carlos Ble | Mar 22, 2013 | JavaScript, Test Driven Development | 3 comments Promises are a nice solution to write readable asynchronous code in JavaScript. If you understand Spanish, I highly recommend this great talk on Promises by Enrique Amodeo. But, is the code with promises easy to unit test? It’s not very difficult, you have to take into
![Unit testing JavaScript with Promises and Jasmine](https://cdn-ak-scissors.b.st-hatena.com/image/square/173cf3bc46025d6104e165215fc6d9e5b762b6df/height=288;version=1;width=512/https%3A%2F%2Fwww.carlosble.com%2Fwp-content%2Fuploads%2Fcropped-favicon.png)