Cafeteria
Dumb wrapper of chai, sinon and friends.
Install
$ npm install --save-dev mocha cafeteria
Dependencies
- chai
- sinon
- sinon-chai
- dirty-chai: To support eslint rule
no-unused-expressions
.
Usage
; const foo = 'bar';const foos = 'bar'; ; ;
API
- cafeteria.chai: Same with chai.
- cafeteria.assert: Same with chai's.
- cafeteria.expect: Same with chai's.
- cafeteria.should: Same with chai's. Should run as function. e.g.
should()
. - cafeteria.sinon: Same with sinon.
- cafeteria.sandbox: Same with sinon's.
- cafeteria.spy: Same with sinon's.
- cafeteria.stub: Same with sinon's.
- cafeteria.mock: Same with sinon's.