
committed by
Alex Rickabaugh

parent
0918adf39d
commit
3903e5ebe7
16
tools/public_api_guard/core/testing.d.ts
vendored
16
tools/public_api_guard/core/testing.d.ts
vendored
@ -18,43 +18,33 @@ export declare class ComponentFixture<T> {
|
||||
whenStable(): Promise<any>;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare const ComponentFixtureAutoDetect: InjectionToken<boolean[]>;
|
||||
|
||||
/** @experimental */
|
||||
export declare const ComponentFixtureNoNgZone: InjectionToken<boolean[]>;
|
||||
|
||||
/** @experimental */
|
||||
export declare function discardPeriodicTasks(): void;
|
||||
|
||||
/** @experimental */
|
||||
export declare function fakeAsync(fn: Function): (...args: any[]) => any;
|
||||
|
||||
/** @experimental */
|
||||
export declare function flush(maxTurns?: number): number;
|
||||
|
||||
/** @experimental */
|
||||
export declare function flushMicrotasks(): void;
|
||||
|
||||
/** @experimental */
|
||||
export declare const getTestBed: () => TestBed;
|
||||
|
||||
export declare function inject(tokens: any[], fn: Function): () => any;
|
||||
|
||||
/** @experimental */
|
||||
export declare class InjectSetupWrapper {
|
||||
constructor(_moduleDef: () => TestModuleMetadata);
|
||||
inject(tokens: any[], fn: Function): () => any;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare type MetadataOverride<T> = {
|
||||
add?: Partial<T>;
|
||||
remove?: Partial<T>;
|
||||
set?: Partial<T>;
|
||||
};
|
||||
|
||||
/** @experimental */
|
||||
export declare function resetFakeAsyncZone(): void;
|
||||
|
||||
export declare const TestBed: TestBedStatic;
|
||||
@ -100,16 +90,14 @@ export interface TestBedStatic {
|
||||
}): TestBedStatic;
|
||||
overrideTemplate(component: Type<any>, template: string): TestBedStatic;
|
||||
overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBedStatic;
|
||||
/** @experimental */ resetTestEnvironment(): void;
|
||||
resetTestEnvironment(): void;
|
||||
resetTestingModule(): TestBedStatic;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class TestComponentRenderer {
|
||||
insertRootElement(rootElementId: string): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare type TestModuleMetadata = {
|
||||
providers?: any[];
|
||||
declarations?: any[];
|
||||
@ -118,9 +106,7 @@ export declare type TestModuleMetadata = {
|
||||
aotSummaries?: () => any[];
|
||||
};
|
||||
|
||||
/** @experimental */
|
||||
export declare function tick(millis?: number): void;
|
||||
|
||||
/** @experimental */
|
||||
export declare function withModule(moduleDef: TestModuleMetadata): InjectSetupWrapper;
|
||||
export declare function withModule(moduleDef: TestModuleMetadata, fn: Function): () => any;
|
||||
|
Reference in New Issue
Block a user