diff --git a/modules/@angular/http/testing/mock_backend.ts b/modules/@angular/http/testing/mock_backend.ts index 58e7261d57..191d37bc2c 100644 --- a/modules/@angular/http/testing/mock_backend.ts +++ b/modules/@angular/http/testing/mock_backend.ts @@ -131,9 +131,9 @@ export class MockBackend implements ConnectionBackend { * ### Example * * ``` - * import {Http, BaseRequestOptions} from '@angular/http'; + * import {Http, BaseRequestOptions, Response} from '@angular/http'; * import {MockBackend} from '@angular/http/testing'; - * import {Injector} from '@angular/core'; + * import {Injector, provide} from '@angular/core'; * * it('should get a response', () => { * var connection; //this will be set when a new connection is emitted from the backend. @@ -142,7 +142,7 @@ export class MockBackend implements ConnectionBackend { * MockBackend, * provide(Http, {useFactory: (backend, options) => { * return new Http(backend, options); - * }, deps: [MockBackend, BaseRequestOptions]}]); + * }, deps: [MockBackend, BaseRequestOptions]})]); * var backend = injector.get(MockBackend); * var http = injector.get(Http); * backend.connections.subscribe(c => connection = c);