Jasmine - Two spies for the same method
问题 I'm new to Jasmine and I wanted to know if we can create 2 spies for the same method. Here is what I'm trying. describe('something', function () { beforeEach(function () { mySpy = jasmine.createSpyObj('mySpy', 'functionInInterest'); mySpy.functionInInterest.andCallFake(function (cb) {cb(something);}); } //Some Test Cases describe('Here is the action!', function () { mySpy = jasmine.createSpyObj('mySpy', 'functionInInterest'); mySpy.functionInInterest.andCallFake(function (cb) {cb