This snippet is a working example of a test against the Http service in Angular 2.0.
It is a very simple test, and provides an example of how to:
- Provide the right wiring to the test injector
- Inject the fake XHRBackend (i.e. MockBackend)
- Define a potential request
- Run the request in the framework
- Set expectations on the result