reafactor(XHR): rename XHRMock to MockXHR for consistency

This commit is contained in:
Victor Berchet
2015-03-31 16:55:46 +02:00
parent 52c55d0ee8
commit d8aeb40b49
4 changed files with 8 additions and 8 deletions

View File

@ -10,16 +10,16 @@ import {
IS_DARTIUM,
it,
} from 'angular2/test_lib';
import {XHRMock} from 'angular2/src/mock/xhr_mock';
import {MockXHR} from 'angular2/src/mock/xhr_mock';
import {PromiseWrapper, Promise} from 'angular2/src/facade/async';
import {isPresent} from 'angular2/src/facade/lang';
export function main() {
describe('XHRMock', () => {
describe('MockXHR', () => {
var xhr;
beforeEach(() => {
xhr = new XHRMock();
xhr = new MockXHR();
});
function expectResponse(request: Promise, url: string, response: string, done = null) {

View File

@ -16,14 +16,14 @@ import {UrlResolver} from 'angular2/src/services/url_resolver';
import {Template} from 'angular2/src/render/api';
import {PromiseWrapper} from 'angular2/src/facade/async';
import {XHRMock} from 'angular2/src/mock/xhr_mock';
import {MockXHR} from 'angular2/src/mock/xhr_mock';
export function main() {
describe('TemplateLoader', () => {
var loader, xhr;
beforeEach(() => {
xhr = new XHRMock()
xhr = new MockXHR();
loader = new TemplateLoader(xhr, new FakeUrlResolver());
});