📚 Docs or angular.io bug report
The Testing HTTP requests section of the HTTP guide has contradictory code and explanation.
TestBed.get is being used but the description says
🔬 Minimal Reproduction
- Navigate to https://angular.io/guide/http
- Within that page, go to section Testing HTTP Requests -> Setup (https://angular.io/guide/http#setup-1)
- Look at the last lines of the block of code named app/testing/http-client.spec.ts(setup) and the description after it
What’s the affected URL?
Expected vs Actual Behavior
TestBed.get should be
Alternatively, explanation should say TestBed.get() instead of TestBed.inject(), but because of what is said in https://angular.io/guide/testing#angular-testbed the first option would be prefered.
Anything else relevant?
Not a duplicate of #30750 because this issue is about a mismatch between the code and the description.