Consider this usual situation:
var a = { b: { c: function() {} } }
I want to keep track of c and although this is easy:
spyOn(ab, 'c');
However, he creates a spy, but he does not work. There are no errors or I see a spy there when debugging.
How can I track the nested method?
UPDATE
Exit: Object [object Object] has no method 'tohaveBeenCalledWith'
javascript jasmine
lukas.pukenis
source share