I have the following scenario:
app.component.ts
isLoading = false;
someFunction(){
this.isLoading = true;
this.someService
.someFuncInService
.pipe(finalize(() => (this.isLoading = false)))
.subscribe(data => {
...
});
}
Now i want to test the isLoading variable, whether it is set false at the end or not.
How should i do it? fixture.detectChanges() isn't helping