karma-sinon-chai-latest
sinon-chai for Karma
Based off of the karma-chai package.
Installation
Install the plugin from npm:
$ npm install karma-sinon-chai-latest --save-dev
Or from Github:
$ npm install 'git+https://github.com/directxman12/karma-sinon-chai-latest.git' --save-dev
Add sinon-chai
to the frameworks
key in your Karma configuration:
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'chai', 'sinon-chai']
# ...
});
});
Usage
All of the various sinon-chai assertions are available as normal.
License
The MIT License (MIT)