Hi,

I am fairly new to Angular 2 so I want to apologize upfront if I just 
oversaw a small thing or this might be a stupid issue. I have a small 
Angular 2 app and recently integrated ng2-redux which worked like a charm. 


I started creating a spec (based on Jasmine) for the app component I 
connected via ng2-redux (done by using "@Inject('ngRedux') ngRedux") and 
executing the tests via Karma are running into the following issue:


Failed: No provider for ngRedux! (App -> ngRedux)


I tried several things and also tried to find my way through a lot of 
documentation but can't seem to find the right solution. From what I 
understand I need to pass either a proper implementation or mock here:


// provide our implementations or mocks to the dependency 
injectorbeforeEachProviders(() => [
  App
]);


I tried duplicating the conditions for the main bootstrap but when I do so 
(or any other way) there is an error occurring at _instantiateProvider in 
the injector.ts of angular 2 (no specific error message though). Am I 
missing something? I found nearly no documentation about adding a provider 
for the ngRedux factory or factories in general (hope I use the proper 
wording here).


Any help is welcome.


Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to