Skip to content

Provides ready-made test setups with referee and sinon. Optionally provides a global, synchronous “define” function to for AMD module integration.

License

Notifications You must be signed in to change notification settings

codastic/setup-referee-sinon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-referee-sinon

Provides ready-made test setups with referee and sinon. Optionally provides a global, synchronous “define” function to for AMD module integration.

Availaible Modules

All modules set up referee to use the formatio formatting library for nicely formatted objects in exception messages. They also add the assertions from sinon to referee (from the referee-sinon module).

  • require('setup-referee-sinon') just provides the basic setup and exports referee and sinon properties.

  • require('setup-referee-sinon/globals') additionally creates referee, assert, refute, expect and sinon as global variables.

  • require('setup-referee-sinon-amd') does the basic setup and creates a global synchronous define function that hooks into node’s require, allowing to require AMD modules. It also defines “referee”, “assert”, “refute”, “expect” and “sinon” AMD modules for usage in tests.

  • require('setup-referee-sinon-amd/globals') additionaly creates globals.

About

Provides ready-made test setups with referee and sinon. Optionally provides a global, synchronous “define” function to for AMD module integration.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%