js-data-angular icon indicating copy to clipboard operation
js-data-angular copied to clipboard

Error: [$injector:unpr] Unknown provider: DSProvider <- DS <- Users <- UserServices

Open kim2014 opened this issue 9 years ago • 1 comments

I wrote the unit test for my angular JS controller and It complained about

Error: [$injector:unpr] Unknown provider: DSProvider <- DS <- Users <- UserServices

I ran the unit test by the karma command: karma run test/karma.conf.js

Attached all of my directives, controller and my unit test DSProvider.zip

kim2014 avatar Oct 05 '16 00:10 kim2014

Change this:

angular.module('ps.users.services', ['ngResource']);

to this:

angular.module('ps.users.services', ['ngResource', 'js-data']);

jmdobry avatar Oct 05 '16 23:10 jmdobry