Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

karma-sinon-chai-latest

directxman1251MIT0.1.0

The latest sinon-chai from NPM for Karma

karma, karma-plugin, chai, mocha, should, sinon, sinon-chai

readme

karma-sinon-chai-latest

sinon-chai for Karma

NPM version Dependency status devDependency Status

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)