// Create an object with hollow methods (does not need to implement everything) | |
const myTestDouble = { | |
exampleMethod: (): any => { | |
} | |
} as RealClass; | |
// Then to return something | |
spyOn(myTestDouble, 'exampleMethod').and.returnValue("Stubbed Value"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment