Prefer jasmine.createSpy to spyOn.