Is it possible to mock an object using Jasmine .spyOn(), with only a subset of properties actually defined?
Basically, imagine I have a Page object that has deliveryTime, status, size properties on it. In my unit test, the values for status, size are not relevant - only the value in deliveryTime property is. Some test fake code would be: spyOnProperty(page, "deliveryTime").and.returnValue(123);
Is there a way to achieve this?
Note: My application is using Angular (7) with GraphQL with an angular GraphQL typescript generator.