posted 12 years ago
I've got a function as follows:
callMethod is another function in the same js file being tested. Both functions are not within any object.
I want to set a spy on callMethod, but am unable to do so. I keep getting errors in Jasmine stating 'callMethod() method does not exist'
What should be the object that is set as the first parameter of spyOn()?