cleanup(testing): create top level files for mocks

Closes #5381
This commit is contained in:
vsavkin
2015-11-24 09:57:24 -08:00
committed by Victor Savkin
parent 89eefcd7b5
commit 8daa9b202d
13 changed files with 21 additions and 11 deletions

View File

@ -31,10 +31,10 @@ export class MockXHR extends XHR {
this._processRequest(this._requests.shift());
} while (this._requests.length > 0);
this.verifyNoOustandingExpectations();
this.verifyNoOutstandingExpectations();
}
verifyNoOustandingExpectations() {
verifyNoOutstandingExpectations() {
if (this._expectations.length === 0) return;
var urls = [];

View File

@ -7,7 +7,7 @@ import {ResponseOptions, BaseResponseOptions} from '../base_response_options';
import {Injectable} from 'angular2/core';
import {BrowserXhr} from './browser_xhr';
import {isPresent} from 'angular2/src/facade/lang';
import {Observable} from 'angular2/angular2';
import {Observable} from 'angular2/core';
import {isSuccess, getResponseURL} from '../http_utils';
/**
* Creates connections using `XMLHttpRequest`. Given a fully-qualified

View File

@ -24,7 +24,7 @@ import {
RouteDefinition
} from './route_config_impl';
import {reflector} from 'angular2/src/core/reflection/reflection';
import {Injectable} from 'angular2/angular2';
import {Injectable} from 'angular2/core';
import {normalizeRouteConfig, assertComponentExists} from './route_config_nomalizer';
import {parser, Url, pathSegmentsToUrl} from './url_parser';