From 17f73cb7bcf53ba0f45f27eb03117f92b3aec626 Mon Sep 17 00:00:00 2001 From: Kevin-K Date: Wed, 2 Mar 2016 15:58:17 -0500 Subject: [PATCH] docs(http): fix MockBackend example imports & syntax error fix Closes #7383 --- modules/@angular/http/testing/mock_backend.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);