0.1.0 • Published 12 years ago

karma-chai v0.1.0

Weekly downloads
129,714
License
-
Repository
github
Last release
12 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-devtoolsgoodeggs-karmagulp-ajswebgulu-ui-by-vuegulu-harderkai-01gyj_s3lh-vue3-uilh-vue3-ui1liferay-forms-ui-testsliferay-forms-alloy-configliferay-karma-alloy-configliferay-karma-configlll-ui-1mandragora-bucketmasterpkglci-core-tile-roimedsupp-quotermetal-karma-config@uidu/karma-config@tuax/plugin-test@vue2do/test@xors/nengine@zalastax/nolb-karma-c@yuqigui1083/yvue-ui@zen-web-components/unit-test-helperaegis-toolsangular_es6_webpack_starterastore-elementsbabel-buildaria-testaria-toolsappirio-gulp-tasksaquaapplugins-tools1000-packages@ckeditor/ckeditor5-dev-tests@atlaskit/karma-config@hasaki-ui/hsk-garen@hasaki-ui/hsk-braumspringroll-automated-qastatic-layout-starter-dev-toolstmp.component.validator@bedrock/karmayaozeyi-uiyqv-basey3-uiya-driverv-ui-1-1ur-test@infinitebrahmanuniverse/nolb-karma-c@l5769389/eleui@myetherwallet/eth2-keystore@kalamazoo/karma-config@popperjs/scripts@popperjs/test@pieriandx/pdx-bootstrap@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-bundler
0.1.0

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago