0.0.2 • Published 6 years ago

expect-assert v0.0.2

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

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.
0.0.2

6 years ago

0.0.1

6 years ago