The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Use Chai assertions for tests in a Karma project

Use Chai assertions for tests in a Karma project

1:17
[Chai](https://npmjs.com/package/chai) assertions work great with the [Mocha](https://npmjs.com/package/mocha) testing framework. In this lesson we'll walk through out to install Chai and [karma-chai](https://npmjs.com/package/karma-chai) so you can use the `expect` assertions in your tests.
Watch this lesson now
Avatar
egghead.io

Chai assertions work great with the Mocha testing framework. In this lesson we'll walk through out to install Chai and karma-chai so you can use the expect assertions in your tests.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?