chai-calling-with
Readable way for testing exceptions for Chai
Installation
Install using npm:
npm install chai-calling-with
Setup
var chai = require('chai');
chai.use(require('chai-calling-with'));
Assertions
.calling
expect(myFunction).when.calling.to.throw;
myFunction.should.calling.throw;
.callingWith
expect(myFunction).when.callingWith('foo', 'bar').to.throw;
myFunction.should.callingWith('foo', 'bar').throw;
Contributing
Please submit all issues and pull requests to the adambrunner/chai-calling-with repository!
Tests
Run tests using npm test
.
Support
If you have any problem or suggestion please open an issue here.