Here i'm able to cover the positive flow but not able to cover .pipe(CatchError.. part
Service.ts
someFunction(Id: number, source: number, issueId: any): Observable<Summary> {
return this.httpClient.get<Summary>(baseUrl + DomainEndpoint + '?id=' + Id + '&source=' + source + '&issueId=' + issueId)
.pipe(catchError(err => {
return throwError(()=> new Error(err));
}));
}
I Want to cover the code coverage for this part also since it is less than expected ,could anyone please guide me through this.