Sign in
Log inSign up
Dany Paredes

8 likes

·

6.5K reads

2 comments

jagadish kumar
jagadish kumar
Jun 15, 2023

i did the same that you have mentioned but i am getting this error: NullInjectorError: NullInjectorError: No provider for HttpClient! error properties: Object({ ngTempTokenPath: [ 'LoginNavigationService', 'NavigationService', 'UrlService', 'Page', 'ClientConfigService', 'HttpClient', 'HttpClient' ] })

image.png

image.png

image.png

does this mean we cannot mock the service in testbed without including the internal depencies that the service has?

·
·1 reply
Dany Paredes
Dany Paredes
Author
·Jun 18, 2023

You must provide the HttpClientTestingModule.

·