javascript - Karma + PhantomJS TypeError: undefined is not an object (evaulating scope.jackpot) -
i still new unit testing, , honest, there isn't think of testing, cannot build app unless have @ least 1 test case, attempted make simple test case could, on smallest block of code in controller, , doesn't seem working. i believe it's error in test case, , not in controller's code itself, because when view app in browser grunt serve console shows no errors. this error gives me: phantomjs 2.1.1 (linux 0.0.0) controller: mainctrl should attach list of jackpot scope failed /home/elli0t/documents/yeoman projects/monopoly/app/bower_components/angular/angular.js:3746:53 foreach@[native code] foreach@/home/elli0t/documents/yeoman projects/monopoly/app/bower_components/angular/angular.js:323:18 loadmodules@/home/elli0t/documents/yeoman projects/monopoly/app/bower_components/angular/angular.js:3711:12 createinjector@/home/elli0t/documents/yeoman projects/monopoly/app/bower_components/angular/angular.js:3651:22 workfn@/home/elli0t/documents/yeoman projects/monopoly/app