Socket
Socket
Sign inDemoInstall

ember-cli-chai

Package Overview
Dependencies
183
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-cli-chai

Chai assertions for Ember.js


Version published
Maintainers
4
Install size
17.2 MB
Created

Changelog

Source

v0.5.0 (2018-03-20)

:boom: Breaking Change
  • #41 Update "chai" to v4.0.0. (@Turbo87)
  • #40 Remove QUnit support. (@Turbo87)
:bug: Bug Fix
  • #48 sinon-chai: Relax constraint. (@Turbo87)
:memo: Documentation
:house: Internal
Committers: 2

Readme

Source

ember-cli-chai

npm Build Status

Chai assertions for Ember.js.

Installation

ember install ember-cli-chai

Usage

After installing ember-cli-chai you can import Chai from the chai package:

import chai from 'chai';

or import the expect() function directly:

import { expect } from 'chai';

Have a look at the vendor shim file to understand what else can be imported this way.

QUnit

Previous versions of ember-cli-chai supported QUnit but due to changes in chai itself this is unfortunately no longer viable. For readable DOM assertions in QUnit we recommend qunit-dom instead.

Chai plugins

ember-cli-chai is able to automatically load a number of popular Chai plugins:

All you have to do is install those plugins via npm install --save-dev. Once they are installed and listed as dependencies in your package.json file they will be used automatically.

Using chai-jquery for example will enable you to write JQuery assertions like:

expect(find('.test-element')).to.have.text('hello');

License

ember-cli-chai is licensed under the MIT License.

Keywords

FAQs

Last updated on 20 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc