refactor(ListWrapper): get ride of ListWrapper.join

This commit is contained in:
Victor Berchet
2015-10-06 17:11:10 -07:00
parent 62e14dc529
commit b6537ad609
10 changed files with 16 additions and 29 deletions

View File

@ -5,15 +5,9 @@ import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptio
import {PromiseCompleter, PromiseWrapper, Promise} from 'angular2/src/core/facade/async';
export class MockXHR extends XHR {
private _expectations: _Expectation[];
private _expectations: _Expectation[] = [];
private _definitions = new Map<string, string>();
private _requests: _PendingRequest[];
constructor() {
super();
this._expectations = [];
this._requests = [];
}
private _requests: _PendingRequest[] = [];
get(url: string): Promise<string> {
var request = new _PendingRequest(url);
@ -50,7 +44,7 @@ export class MockXHR extends XHR {
urls.push(expectation.url);
}
throw new BaseException(`Unsatisfied requests: ${ListWrapper.join(urls, ', ')}`);
throw new BaseException(`Unsatisfied requests: ${urls.join(', ')}`);
}
private _processRequest(request: _PendingRequest) {