Skip to content

Commit af337a6

Browse files
committed
feat(services): add example for mocking new Http client
1 parent 3f39aaf commit af337a6

File tree

4 files changed

+3459
-541
lines changed

4 files changed

+3459
-541
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ All the scenarios are listed here below and nicely linked to the source file.
3939
_Learn about different ways of injecting a service into a test case as well as how to test service methods._
4040
- [Async operations](./src/app/services/async.service.spec.ts)
4141
_Learn how to test async operations using the `async()` as well as `fakeAsync()` functions._
42-
- [Mocking and remote http calls](./src/app/services/remote.service.spec.ts)
42+
- Mocking and remote http calls
4343
_Learn how to mock external dependencies, such as use the `MockBackend` provided by Angular to respond to http calls._
44+
- [Old, < 4.3.1 Http service](./src/app/services/remote.service.spec.ts)
45+
- [New HttpClient from `@angular/common/http`](./src/app/services/remote-new.service.spec.ts)
4446
1. [**Testing Pipes**](./src/app/pipes)
4547
- [custom filter pipe](./src/app/pipes/filter.pipe.spec.ts)
4648
1. [**Custom Matchers and Utilities**](./src/app/utils)

0 commit comments

Comments
 (0)