Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 995 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 995 Bytes

Custom assertions with @sinonjs/referee

This repository contains runnable examples of custom assertions for @sinonjs/referee.

The npm scripts in package.json show how to load custom assertions with

  • Mocha (npm run test:mocha)
  • Mochify (npm run test:mochify)
  • Jest (npm run test:jest)
  • Jasmine (npm run test:jasmine)
  • Tap (npm run test:tap)

The example sources can be found in ./test/assertions/. Use them as a blueprint to build your own assertions, or refer to the documentation of referee.add() to learn more.