Hi all,
I am currently trying to write unit tests for my Ionic app, but whenever I use inject suddenly testing stops working and I get an error. Angular-mocks is the same version as Angular that is installed. And I followed the step according to this tutorial:
I have also included the proper file-links the Karma config file, and so I’m pretty confused by what is happening. So if there is any help that anyone could provide I would really appreciate it.
The error is below:
`forEach@/Users/ryan/Documents/iOS/www/lib/ionic/js/angular/angular.js:336:24 loadModules@/Users/ryan/Documents/iOS/www/lib/ionic/js/angular/angular.js:4346:12 createInjector@/Users/ryan/Documents/iOS/www/lib/ionic/js/angular/angular.js:4272:22 workFn@/Users/ryan/Documents/iOS/www/lib/angular-mocks/angular-mocks.js:2506:60 /Users/ryan/Documents/iOS/www/lib/ionic/js/angular/angular.js:4386:53`