chai-calling-with

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i chai-calling-with

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • adambrunner