Skip to content

sinonjs/referee-custom-assertions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.