expect-assert
v0.0.2
Published
Extension for mocha that expects any assertion to have run in each test otherwise throwing error.
Downloads
72
Readme
expect-assert
Extension for mocha that expects any assertion to have run in each test otherwise throwing error.
Tested with:
- Chai:
- Expect
- Assert
- Should *(extended only)
Installation
- Require at start of tests or in your testing config.
const expectAssert = require('./index'); - Instantiate with your assertion of choice.
const expect = expectAssert(chai.expect); - Use where you need.
