chore(api): clean up compiler/testing api (#9520)

Do not export MockXHR, which is a private helper.
This commit is contained in:
Julie Ralph 2016-06-23 15:52:18 -07:00 committed by GitHub
parent 8eb81b3741
commit 8d5a312585
5 changed files with 4 additions and 12 deletions

View File

@ -10,7 +10,7 @@ import {CompileTemplateMetadata, CompileTypeMetadata} from '@angular/compiler/sr
import {CompilerConfig} from '@angular/compiler/src/config';
import {DirectiveNormalizer} from '@angular/compiler/src/directive_normalizer';
import {XHR} from '@angular/compiler/src/xhr';
import {MockXHR} from '@angular/compiler/testing';
import {MockXHR} from '@angular/compiler/testing/xhr_mock';
import {ViewEncapsulation} from '@angular/core/src/metadata/view';
import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal';
import {AsyncTestCompleter} from '@angular/core/testing/testing_internal';

View File

@ -8,7 +8,8 @@
import {ElementSchemaRegistry, UrlResolver, XHR} from '@angular/compiler';
import {createUrlResolverWithoutPackagePrefix} from '@angular/compiler/src/url_resolver';
import {MockSchemaRegistry, MockXHR} from '@angular/compiler/testing';
import {MockSchemaRegistry} from '@angular/compiler/testing';
import {MockXHR} from '@angular/compiler/testing/xhr_mock';
export var TEST_PROVIDERS: any[] = [
{provide: ElementSchemaRegistry, useValue: new MockSchemaRegistry({}, {})},

View File

@ -8,7 +8,7 @@
import {beforeEach, ddescribe, describe, expect, iit, inject, it,} from '@angular/core/testing/testing_internal';
import {AsyncTestCompleter} from '@angular/core/testing/testing_internal';
import {MockXHR} from '@angular/compiler/testing';
import {MockXHR} from '@angular/compiler/testing/xhr_mock';
import {PromiseWrapper} from '../src/facade/async';
import {isPresent} from '../src/facade/lang';

View File

@ -8,6 +8,5 @@
export * from './testing/schema_registry_mock';
export * from './testing/view_resolver_mock';
export * from './testing/xhr_mock';
export * from './testing/test_component_builder';
export * from './testing/directive_resolver_mock';

View File

@ -51,14 +51,6 @@ export declare class MockViewResolver extends ViewResolver {
resolve(component: Type): ViewMetadata;
}
export declare class MockXHR extends XHR {
get(url: string): Promise<string>;
expect(url: string, response: string): void;
when(url: string, response: string): void;
flush(): void;
verifyNoOutstandingExpectations(): void;
}
export declare class TestComponentBuilder {
constructor(_injector: Injector);
overrideTemplate(componentType: Type, template: string): TestComponentBuilder;