0.1.0 • Published 11 years ago

karma-chai v0.1.0

Weekly downloads
129,714
License
-
Repository
github
Last release
11 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)

clying-uiclouds-uies6-workflowforkliftjsjust-bi-toolkityii-vue-ui@everything-registry/sub-chunk-2005wl-power-pluginwa.component.validatorwa.validator2vusion-clixin-ui20210822xipcodexethya-extension-basexes-webpack-coresuper-powered-api-testingvue-cli-plugin-unit-karmavue-cli-plugin-unit-karmajsvue-cli-plugin-unit-karmajscli3vue-buildkarma-es6-webpack-configkarma-browser-reporterkarma-chai-lodashkcd-common-toolskarma-webpack-extendjust-spalc-base-serverlazynerd-devtools@aws-crypto/example-browserspringroll-automated-qastatic-layout-starter-dev-toolstmp.component.validator@appnest/web-config@atlaskit/karma-config@bedrock/karma@ckeditor/ckeditor5-dev-tests@ckeditor/ckeditor5-package-tools1000-packages@daybrush/testeryaozeyi-uiyqv-basey3-uiya-driverv-ui-1-1ur-test@fishawack/config-grunt@fishawack/core@hasaki-ui/hsk-braum@hasaki-ui/hsk-garen@elliemae/em-swift-cli@garbas/mozilla-neo@infinitebrahmanuniverse/nolb-karma-c@l5769389/eleui@myetherwallet/eth2-keystore@marioq/pj-ui@fabwcie/ckeditor5-preview@kalamazoo/karma-config@popperjs/scripts@popperjs/test@pieriandx/pdx-bootstrap@nutmeg/cli@ovos-media/builder-archetype@ovos-media/builder-ope-archetypemozilla-neomy-tnm-2micropackmoo-angular-startermimosa-karma-enterprisemidnight-lizard-testingpagerefreshorxe-lintobei-uinva-testreact-base-starter-projectreact-boilerplate-app-scriptsreact-material-dashboardreact-es6-startersaffron-bundlerrehab-fe-skeleton-testsuiteprokure_blueprintngwpnode-test-runnerpor-uiqing-buildpxt-corepxt-core-ownrangle-gulpshenxin-uisix-widget-buildsupportshowcar-gulpsnowplow-es6-trackergix-polar-karmagix-gix-polar-karmaglitchbitchgherkin-karma-examplegs-cligoodeggs-karmagulp-ajswebgulu-ui-by-vuegulu-harderkai-01
0.1.0

11 years ago

0.0.2

12 years ago

0.0.1

12 years ago