expect-assert

0.0.2 • Public • Published

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

  1. Require at start of tests or in your testing config.
    const expectAssert = require('./index');
    
  2. Instantiate with your assertion of choice.
    const expect = expectAssert(chai.expect);
    
  3. Use where you need.

Readme

Keywords

Package Sidebar

Install

npm i expect-assert

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

7.7 kB

Total Files

6

Last publish

Collaborators

  • john681611