Unit Test : Angular Series : Mocking a service in components
This article will explain how to mock a service call while trying to cover a method in a component.
Consider the following component,
export class HelloComponent {
constructor(private helloSvs: HelloService) {
}
serviceCall() {
t...
senbagaraman04.hashnode.dev1 min read