karma-chai
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

karma-chai

Chai for Karma

0.1.0  •  Updated 2 years ago  •  by Greg Thornton  •  MIT License

karma-chai

Chai for Karma

NPM version Dependency status devDependency Status

Installation

Install the plugin from npm:

$ npm install karma-chai --save-dev

Or from Github:

$ npm install 'git+https://github.com/xdissent/karma-chai.git' --save-dev

Add chai to the frameworks key in your Karma configuration:

module.exports = (config) ->
  config.set

    # frameworks to use
    frameworks: ['mocha', 'chai']

    # ...

Usage

Each of the different Chai assertion suites is available in the tests:

describe 'karma tests with chai', ->

  it 'should expose the Chai assert method', ->
    assert.ok('everything', 'everything is ok');

  it 'should expose the Chai expect method', ->
    expect('foo').to.not.equal 'bar'

  it 'should expose the Chai should property', ->
    1.should.not.equal 2
    should.exist 123

License

The MIT License (MIT)

Popularity

Weekly Downloads
92.3K
Stars
61

Maintenance

Development

Last ver 6 years ago
Created 7 years ago
Last commit 6 years ago
11 days between commits

Technology

Node version: null
0 unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

4 contributors
Greg Thornton
Maintainer, 15 commits, 2 merges
Alex Gorbatchev
Maintainer, 7 commits, 2 merges, 2 PRs
Eugene Datsky
1 commits, 1 PRs
Works at Canva
Thomas Parisot
1 commits
oncletom
1 PRs
SimenB
1 PRs

Dependencies

Tags

karma
karma-plugin
chai
mocha
should
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.