karma-chai-http
Karma plugin for the chai-http plugin.
Installing
$ npm install karma-chai-http --save-dev
Dependencies
To use karma-chai-http
you also need to install these modules and their respective dependencies:
How to Use It
Before doing anything else make sure you've got this module (karma-chai-http
) and its dependencies (karma-chai
, chai-http
) installed.
Now you just need to add chai-http
to the frameworks
array in your Karma configuration:
karma.conf.js
'use strict';module { config;}
Karma loads its frameworks in reverse order and chai-http
depends on chai
, so please declare it before chai
on your frameworks array.
Credits
This module has been heavily (very heavily) inspired by the excelent module karma-chai-as-promised
, written by Vlad Kosinov.