Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Angular Testing With Ionic

$
0
0

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:

http://gonehybrid.com/how-to-write-automated-tests-for-your-ionic-app-part-2/

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

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>