Skip to content

c8y3/sinon-register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sinon-register

Helper module to register sinon in mocha.

Usage

First install and add to your devDependencies:

npm install sinon-register --save-dev

Then, add this option when calling mocha (either directly on the command line or in a configuration file such as test/mocha.opts):

--require sinon-register

That's it, global variable sinon is now available in your tests! You are all set to write mocks...

License

sinon-register is licensed under the AGPL-3.0 license

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages