0.1.0 • Published 10 years ago

karma-chai v0.1.0

Weekly downloads
129,714
License
-
Repository
github
Last release
10 years ago

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)

@lume/cliclying-uiclouds-uies6-workflowforkliftjsjust-bi-toolkityii-vue-uipxt-core@everything-registry/sub-chunk-2005obei-uipagerefreshorxe-lintngwpmimosa-karma-enterprisemicropacknode-test-runnernva-testpor-uimetal-karma-configmoo-angular-startermozilla-neomy-tnm-2pxt-core-ownqing-buildprokure_blueprintgs-cligulu-harderkai-01gulu-ui-by-vuegyj_s3gulp-ajswebfoglet-scriptsfear-core-devgenerator-hyper-angulargix-gix-polar-karmagenerator-angularjs-skeletongherkin-karma-examplegenerator-mmagix-polar-karmaglitchbitchgoodeggs-karmafront-test-1just-spalazynerd-devtoolslc-base-serverlci-core-tile-roikcd-common-toolslh-vue3-uilh-vue3-ui1mandragora-bucketmasterpkgmedsupp-quoterkarma-webpack-extendkarma-es6-webpack-configkarma-chai-lodashkarma-browser-reporterliferay-forms-alloy-configliferay-forms-ui-testsliferay-karma-alloy-configliferay-karma-configlll-ui-1midnight-lizard-testingreact-base-starter-projectreact-boilerplate-app-scriptsreact-es6-starterrangle-gulprehab-fe-skeleton-testsuitereact-material-dashboardsaffron-bundler@ovos-media/builder-archetype@ovos-media/builder-ope-archetype@nutmeg/clitmp.component.validator@pieriandx/pdx-bootstrapshenxin-ui@fabwcie/ckeditor5-previewsnowplow-es6-trackershowcar-gulp@myetherwallet/eth2-keystorespringroll-automated-qastatic-layout-starter-dev-tools@fishawack/config-grunt@fishawack/coresix-widget-buildsupport@l5769389/eleui@marioq/pj-uisuper-powered-api-testing@stackr23/webpackur-test@popperjs/scripts@popperjs/testv-ui-1-1vue-cli-plugin-unit-karmavue-cli-plugin-unit-karmajsvue-cli-plugin-unit-karmajscli3@spinacia/testwl-power-pluginwa.component.validatorwa.validator2vusion-cliy3-ui
0.1.0

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago