Spying on Function Calls in Jasmine Doesn’t Work as You Expect It To
Say you want to test that a function is called in your javascript code. What could be simpler, you say. Just write a simple Jasmine spec, throw a spy in, and you are set. That’s what I thought, before stumbling on a weird issue.