# karma-chai

> Chai for Karma

Latest version **0.1.0** (published 2014-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install karma-chai
pnpm add karma-chai
yarn add karma-chai
bun add karma-chai
```

## Health

**Score 18/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-02-13 |
| First published | 2013-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/karma-chai) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 60 |
| Author | Greg Thornton |
| Maintainers | xdissent, alexgorbatchev |
| Keywords | karma, karma-plugin, chai, mocha, should |

## Links

- npm: https://www.npmjs.com/package/karma-chai
- Repository: https://github.com/xdissent/karma-chai
- Homepage: http://xdissent.github.io/karma-chai
- Issues: https://github.com/xdissent/karma-chai/issues
- npm.io page: https://npm.io/package/karma-chai

## Recent versions

- 0.1.0 (latest) — 2014-02-13
- 0.0.2 — 2013-10-10
- 0.0.1 — 2013-08-16

## README

karma-chai
==========

[Chai](http://chaijs.com) for [Karma](http://karma-runner.github.io)

[![NPM version](https://badge.fury.io/js/karma-chai.png)](http://badge.fury.io/js/karma-chai) [![Dependency status](https://david-dm.org/xdissent/karma-chai.png)](https://david-dm.org/xdissent/karma-chai) [![devDependency Status](https://david-dm.org/xdissent/karma-chai/dev-status.png)](https://david-dm.org/xdissent/karma-chai#info=devDependencies)

Installation
------------

Install the plugin from npm:

```sh
$ npm install karma-chai --save-dev
```

Or from Github:

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

Add `chai` to the `frameworks` key in your Karma configuration:

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

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

    # ...
```


Usage
-----

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

```coffee
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)

---
_Source: https://npm.io/package/karma-chai · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
