Unit Testing Angular Observable
![](https://www.darchuk.net/wp-content/uploads/2017/11/clipboard-2899586_640.png)
Say that you created a service that essentially wraps Angular’s HttpClient calls: And say that you called that in a component: And now you want to test the Get function to make sure that myValue is set to the value returned by the service. If you try to create a spy on the function in … [Read more…]