For added niceness: Combine #sinon with #chaijs through https://github.com/domenic/sinon-chai and be able to interact with your mocks in your normal Chai fashion:

spy.should.have.been.calledTwice;

GitHub - domenic/sinon-chai: Extends Chai with assertions for the Sinon.JS mocking framework.

Extends Chai with assertions for the Sinon.JS mocking framework. - GitHub - domenic/sinon-chai: Extends Chai with assertions for the Sinon.JS mocking framework.

GitHub

Released a new module, a tiny little extension for helping with Chai assertion of non-posix paths: https://github.com/voxpelli/chai-posix-path

#npm #npmRelease #newNpmModule #chaijs

GitHub - voxpelli/chai-posix-path: Checks whether a string path matches a posix path

Checks whether a string path matches a posix path. Contribute to voxpelli/chai-posix-path development by creating an account on GitHub.

GitHub