1.0.0 • Published 8 years ago

chai-calling-with v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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.

1.0.0

8 years ago