How do we clear the spy in a jasmine test suite programmatically? Thanks.
beforeEach(function() { spyOn($, \"ajax\").andCallFake(function(params){ }) })
From jasmine 2.5, you can use this global setting to update a spy within your test cases:
jasmine.getEnv().allowRespy(true);