Test-framework agnostic assertion and expectation library
Clone or download
mroderick Use samsam.match directly
And don't handle errors in any special way, as it is near impossible to get samsam.match to throw
Latest commit e2491db Nov 12, 2018

README.md

referee

Build Status Coverage Status

referee is in your unit tests, deciding who passes and who fails.

It is a test-framework agnostic assertion and expectation library. Some highlights:

  • Rich library of assertions
  • Symmetric assert/refute (refute is referee's "assert.not*")
  • Evented: Emits success and failure events
  • Failing assertions throw exceptions by default, but can be configured to not
  • API to add custom assertions that provides quite a bit of plumbing for free

referee works in browsers (including old and rowdy ones, like IE6) and Node. It will define itself as an AMD module if you want it to (i.e. if there's a define function available).

Documentation

https://sinonjs.github.io/referee/

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor]

Licence

referee was released under BSD-3