Inject the httpClient and another service into service with spectatot #427
Unanswered
tamyfabius
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to do with spectator in order to inject the httpClient and a service into another service
ex: new myService (httpClient, configService);
I know that to mock a Service that is injected into another service we can do this:
And to test the httpClient we can do this:
So my question is how do I inject the httpClient and another service (ConfigService in my case) into a service that I would like to test.
Beta Was this translation helpful? Give feedback.
All reactions