Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 571 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 571 Bytes

consider

Plugin for the Unexpected assertion library that stops it from throwing exceptions when an assertion fails. Instead, it will hook into afterEach and render a report of all assertions that failed and succeeded.

Example:

const expect = require('unexpected').clone().use(require('consider'));

it('should fail', () => {
  expect(1, 'to equal', 2);
  expect('abc', 'to equal', 'abc');
  expect(2, 'to equal', 3);
});

Produces the following output when run through mocha:

Output