chai-angular-injectable
Check a function can be safely used with Angular 1 dependency injector.
Support inline Array annotation and property annotation.
Install
npm install --save-dev mocha chai chai-angular-injectable
Usage
Register the plugin:
const chai = ;const injectableChai = ; chai;
Test your farctory, service and controllers:
var SomeCtrl = 'foo' {};var {}; fooFactory$inject = '$log'; ; ;