A test case that shows Angular 1.5.0-rc.1 unable to execute Karma + Jasmine tests
sampleProvider.js
- A very simple configurable provider.sampleProvider_spec.js
- Some tests for the provider that should give you an idea of how you might test your real provider
npm install
npm test
Should see the following error:
PhantomJS 1.9.8 (Windows 7 0.0.0) sampleProvider Default Configuration Should get the default value FAILED
Error: [$injector:modulerr] Failed to instantiate module ng due to:
TypeError: 'undefined' is not an object (evaluating 'Function.prototype.bind.apply')
at instantiate (C:/app/node_modules/angular/angular.js:4622)