ember install ember-cli-chai
ember-cli-chai you can import Chai
or import the
expect() function directly:
Have a look at the vendor shim file to understand what else can be imported this way.
ember-cli-chai is able to automatically load a number of popular
chai-jquery– JQuery assertions
chai-dom– DOM assertions
chai-as-promised– Promise assertions
sinon-chai– Sinon assertions
testdouble-chai- testdouble.js assertions
All you have to do is install those plugins via
npm install --save-dev.
Once they are installed and listed as dependencies in your
they will be used automatically.
chai-jquery for example will enable you to write JQuery assertions
ember-cli-chai is licensed under the MIT License.