Hey guys,
I am writing karma test with jasmine.
After injecting my controller with something like $controller(‘controllerName’, { scope: $rootScope.$new() …}) I want to test some objects i am writing on the rootScope if the controller is loaded.
If i save the rootScope or if I inject it in my testcase the values are not on it, feels like I am working on another $rootScope instance or something like that?!
Anyone an idea how to test the ctrl rootscope?
Thanks and greets,
bengtler