UNPKG

799 BMarkdownView Raw
1karma-chai-sinon
2==========
3
4[Chai](http://chaijs.com) + [Sinon-Chai](http://chaijs.com/plugins/sinon-chai) + [Sinon](http://sinonjs.org/) for [Karma](http://karma-runner.github.io)
5
6*What makes this plugin different from `karma-sinon-chai`?*
7* This plugin uses (and will always use) the latest compatible versions of every library.
8* No `bower` dependency.
9
10Installation
11------------
12
13Install the plugin from npm:
14
15```sh
16$ npm install karma-chai-sinon --save-dev
17```
18
19Install the plugin from Github:
20
21```sh
22$ npm install 'git://github.com/tubalmartin/karma-chai-sinon.git' --save-dev
23```
24
25Add `chai-sinon` to the `frameworks` key in your Karma configuration:
26
27```js
28module.exports = function(config) {
29 config.set({
30
31 # frameworks to use
32 frameworks: ['mocha', 'chai-sinon']
33
34 # ...
35```