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:

committed by
Alex Rickabaugh

parent
ebcd14f8e9
commit
d75502eeee
9
tools/public_api_guard/core/testing.d.ts
vendored
9
tools/public_api_guard/core/testing.d.ts
vendored
@ -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;
|
||||
|
Reference in New Issue
Block a user