- Clone this gist.
- Run
npm install
in the gist folder - Run
npm test
One test will pass, the other will fail but because it times out. The assertion
inside of the .then()
fails, stopping the code execution before the done()
call. 😢
Need to add .done()
to the chain. See the updated test.js!
Vanilla ES6 promises
(also one of your
.done()
is on the test suite and not the promise.)