Angular unit testing with Jasmine: how to remove or modify spyOn January 19, 2023 by Tarik You can just overwrite it updateService.getUpdate = jasmine.createSpy().and.returnValue(etc)