karma-ng-request2js-preprocessor
A Karma plugin. Preprocess JSON files for loose (black-box) unit testing.
Installation
npm install karma-ng-request2js-preprocessor --save-dev
Configuration
Example:
// karma.conf.jsmodule { config;};
How does it work?
The plugin preprocesses the JSON file for you.
For example.
// foo.json "bar": "baz"
When loaded, the plugin puts the JSON files into $httpBackend:
$httpBackend;