Unit Testing Angular Observable
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…]