DEV Community

Discussion on: Intercepting Http Requests-- Using And Testing Angular's HttpClient

Collapse
 
mohitvaidh profile image
Mohit

My interceptor is like:

return next.handle(request).catch((error) => {
...
...
...
return Observable.throw(error);
}

in the service test I am unable to assert this error. Any advise?