For testing promises (a coding style). I prefer callbacks for my async code, I am old school, but I had to use promises for a thing at work, and I like it.
github.com/domenic/chai-as-promised
Test promises with code like
[code] expect(foo).should.eventually.equal('bar'); [/code]
Nice
Paulʼs blog - I live in Hythe in Kent. Married + dad to two, I'm a full-stack web engineer, + I do js / node, some ruby, other languages etc. My hobbies are pubs, parkrun, eating, home automation and other diy jiggery-pokery, history, family tree stuff, TV, squirrels, pirates, lego, and time travel.