docs(http): fix MockBackend imports

Fixes #5639

Closes #5651
This commit is contained in:
cexbrayat 2015-12-06 10:35:39 +01:00 committed by Jeremy Elbourn
parent 4b1618cb03
commit e6170e8ac3
3 changed files with 8 additions and 4 deletions

View File

@ -116,7 +116,8 @@ export {URLSearchParams} from './src/http/url_search_params';
*
* ```
* import {provide, Injector} from 'angular2/angular2';
* import {HTTP_PROVIDERS, Http, Response, XHRBackend, MockBackend} from 'angular2/http';
* import {HTTP_PROVIDERS, Http, Response, XHRBackend} from 'angular2/http';
* import {MockBackend} from 'angular2/http/testing';
*
* var people = [{name: 'Jeff'}, {name: 'Tobias'}];
*
@ -239,7 +240,8 @@ export const HTTP_BINDINGS = HTTP_PROVIDERS;
*
* ```
* import {provide, Injector} from 'angular2/angular2';
* import {JSONP_PROVIDERS, Jsonp, Response, JSONPBackend, MockBackend} from 'angular2/http';
* import {JSONP_PROVIDERS, Jsonp, Response, JSONPBackend} from 'angular2/http';
* import {MockBackend} from 'angular2/http/testing';
*
* var people = [{name: 'Jeff'}, {name: 'Tobias'}];
* var injector = Injector.resolveAndCreate([

View File

@ -98,7 +98,8 @@ export class MockConnection implements Connection {
* ### Example
*
* ```
* import {MockBackend, DefaultOptions, Http} from 'angular2/http';
* import {DefaultOptions, Http} from 'angular2/http';
* import {MockBackend} from 'angular2/http/testing';
* it('should get some data', inject([AsyncTestCompleter], (async) => {
* var connection;
* var injector = Injector.resolveAndCreate([

View File

@ -73,7 +73,8 @@ function mergeOptions(defaultOpts, providedOpts, method, url): RequestOptions {
* ### Example
*
* ```typescript
* import {MockBackend, BaseRequestOptions, Http} from 'angular2/http';
* import {BaseRequestOptions, Http} from 'angular2/http';
* import {MockBackend} from 'angular2/http/testing';
* var injector = Injector.resolveAndCreate([
* BaseRequestOptions,
* MockBackend,