jasmine - angularjs loadModules "should have a dummy test" -


running karma unit tests project yields:

browser (os) xyz section should have dummy test xyz failed     minerr/<@../angular.js:63:12     loadmodules/<@../angular.js:4141:15     foreach@../angular.js:323:11     loadmodules@../angular.js:4099:5     createinjector@../angular.js:4025:11     workfn@../../vendor/angular-mocks/angular-mocks.js:2339:44 

xyz.spec:

describe('xyz section', function () {   beforeeach(module('blah.xyz'));   it('should have dummy test xyz', inject(function() {     expect(true).tobetruthy();   })); }); 

i notice states can't found yet others can...

the output angular.js (even without minification) impossible debug... therefore angular.js has altered partially decent debug output

angular.js

function loadmodules(modulestoload) {   [...];   try {     [...];   } catch (e) {     [...];     console.log(e);//<<<<<-------- needed in order have                    //<<<<<-------- idea going on     throw $injectorminerr([...]);   }   [...]; } 

in case yielded:

log: '[$injector:unpr] unknown provider: $stateprovider http://errors.angularjs.org/1.3.15/$injector/unpr?p0=%24stateprovider minerr/<@[... blah blah blah ...] 

which led me find angular.module("blah.xyz", [...]); in 2 different files... had assumed angular combine dependency list of both , maintain single module reference, angular read first dependency list encounters , ignore second attempt...


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -