karma-chai

WebJar for karma-chai

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

karma-chai
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

karma-chai
WebJar for karma-chai
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/xdissent/karma-chai

Download karma-chai

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/karma-chai/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>karma-chai</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/karma-chai/
implementation 'org.webjars.npm:karma-chai:0.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/karma-chai/
implementation ("org.webjars.npm:karma-chai:0.1.0")
'org.webjars.npm:karma-chai:jar:0.1.0'
<dependency org="org.webjars.npm" name="karma-chai" rev="0.1.0">
  <artifact name="karma-chai" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='karma-chai', version='0.1.0')
)
libraryDependencies += "org.webjars.npm" % "karma-chai" % "0.1.0"
[org.webjars.npm/karma-chai "0.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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)

Versions

Version
0.1.0