2 comments
·Jun 15, 2023
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' ] })
does this mean we cannot mock the service in testbed without including the internal depencies that the service has?
·
·1 reply
Author
·Jun 18, 2023
You must provide the HttpClientTestingModule.
·