I have a component. Inside of it, the ngOnInit function calls another function of component to retrieve user List. I want to make two series of tets:
I personally prefer cancelling the component ngOnInit for every test.
beforeEach(() => { UserListComponent.prototype.ngOnInit = () => {} ; .... });