Jasmine object “has no method 'andReturn'”
问题 Beginner with Jasmine, very first attempt with Jasmine Spies. I thought I was mimicking the format displayed here (search: "andReturn"), but I'm getting an error that I can't work out: TypeError: Object function () { callTracker.track({ object: this, args: Array.prototype.slice.apply(arguments) }); return spyStrategy.exec.apply(this, arguments); } has no method 'andReturn' No clue what I'm doing wrong. Here's my Spec: describe('Die', function() { it('returns a value when you roll it',