chai-and-then
A simple helper for multiple async assertions. It allows for easy and natural chaining of your assertions, for example to observe side effects.
Instead of using this you would need to use .then
, which can make the code
harder to read.
Example
This is taken from the tests and shows how easy it is to observe side effects.