DEV Community

Discussion on: Angular Components Unit Test – Common Use Cases

Collapse
 
nicholaalkhouri profile image
Nichola Alkhouri Playful Programming Angular

It is up to you, you can create a new class that matches the real ExampleService and mock the members (properties and methods). you can use a mocking library if you want, but anyway it is up to you, depending on the logic of the service, to decide how the mock service should behave