Closed jase88 closed 2 weeks ago
jasmine can spy on properties , see their docs.
Input:
spyOnProperty(component, 'propertyName1').and.returnValue(42); spyOnProperty(component, 'propertyName2', 'get').and.returnValue(true);
should be transformed to:
jest.spyOn(component, 'propertyName1', 'get').mockReturnValue(42); jest.spyOn(component, 'propertyName2', 'get').mockReturnValue(true);
jasmine can spy on properties , see their docs.
Desired behaviour
Input:
should be transformed to: