refactor(testing): remove deprecated test setup functions (#10600)

Remove test setup functions which were deprecated in rc5. See the
changelog for rc5 for how to update. In brief, instead of
`setBaseTestProviders`, use `TestBed.initTestEnvironment`.
This commit is contained in:
Julie Ralph
2016-08-09 10:46:28 -07:00
committed by Alex Rickabaugh
parent ebcd14f8e9
commit d75502eeee
9 changed files with 6 additions and 183 deletions

View File

@ -40,9 +40,6 @@ export declare function flushMicrotasks(): void;
/** @experimental */
export declare function getTestBed(): TestBed;
/** @deprecated */
export declare function getTestInjector(): TestBed;
/** @stable */
export declare function inject(tokens: any[], fn: Function): () => any;
@ -59,15 +56,9 @@ export declare type MetadataOverride<T> = {
set?: T;
};
/** @deprecated */
export declare function resetBaseTestProviders(): void;
/** @experimental */
export declare function resetFakeAsyncZone(): void;
/** @deprecated */
export declare function setBaseTestProviders(platformProviders: Array<Type | Provider | any[]>, applicationProviders: Array<Type | Provider | any[]>): void;
/** @experimental */
export declare class TestBed implements Injector {
ngModule: Type;

View File

@ -4,9 +4,3 @@ export declare class BrowserDynamicTestingModule {
/** @experimental */
export declare const platformBrowserDynamicTesting: (extraProviders?: any[]) => PlatformRef;
/** @deprecated */
export declare const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS: Array<any>;
/** @deprecated */
export declare const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: Array<any>;

View File

@ -2,14 +2,5 @@
export declare class BrowserTestingModule {
}
/** @deprecated */
export declare const browserTestingPlatform: (extraProviders?: any[]) => PlatformRef;
/** @experimental */
export declare const platformBrowserTesting: (extraProviders?: any[]) => PlatformRef;
/** @deprecated */
export declare const TEST_BROWSER_APPLICATION_PROVIDERS: Array<any>;
/** @deprecated */
export declare const TEST_BROWSER_PLATFORM_PROVIDERS: Array<any>;

View File

@ -4,12 +4,3 @@ export declare const platformServerTesting: (extraProviders?: any[]) => Platform
/** @experimental */
export declare class ServerTestingModule {
}
/** @deprecated */
export declare const serverTestingPlatform: (extraProviders?: any[]) => PlatformRef;
/** @deprecated */
export declare const TEST_SERVER_APPLICATION_PROVIDERS: Array<any>;
/** @deprecated */
export declare const TEST_SERVER_PLATFORM_PROVIDERS: Array<any>;