Vojta Test Guidelines Testing What does this code do?
// load the tabs code beforeEach(module('tabs'));
He says he is loading the tab code, but why? Isn't the tabs module already defined here?
var tabs = angular.module('tabs', []);
Can someone give an explanation in explaining what should be loaded, why and how in the angular test?
I tried calling this function in my tests, for example
beforeEach(module('utils')) ;
and I get this error:
TypeError: Property 'module' of object [object Object] is not a function
Also, when I try to load my templates like this
beforeEach(module('templates/loadingBar.html'));
I get this error:
Error: No module: templates/loadingBar.html
I really got confused in the whole process.
Thanks for the help...
source share