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;