Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: ngMocks.globalReplace() doesn't work for HttpClientModule #10347

Open
Eagl9Eye opened this issue Oct 30, 2024 · 0 comments
Open

Bug: ngMocks.globalReplace() doesn't work for HttpClientModule #10347

Eagl9Eye opened this issue Oct 30, 2024 · 0 comments

Comments

@Eagl9Eye
Copy link

Still the same issue for version 14.13.0. I tried ngMocks.globalReplace(HttpClientModule, HttpClientTestingModule); and ngMocks.globalKeep(HttpClientTestingModule, true). Both resulting in HttpClient not provided.

Whereas using .replace(HttpClientModule, HttpClientTestingModule) or .keep(HttpClientTestingModule) directly on MockBuilder works as expected.

Originally posted by @cluxig in #6402 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant