Why does this code fails
it("Test", inject(function (){
var obj = {
func: function (){
}
};
spyOn(obj, "func").andCallThrough();
}));
with this exception?
TypeError: 'undefined' is not a function (evaluating 'spyOn(obj, "func").andCallThrough()')
at /home/max/thesis/projekt/src/CurrentAdService.spec.js:44
...
I did update some packages via npm and now it is not working. I forget to make a backup of my package.json. Here are the Versions, i tried till now:
jasmine 2.1.1, jasmine-core 2.1.3
jasmine 2.0.1, jasmine-core 2.0.1
Both combination dont work.
Thanks,
Max