mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
// Type definitions for mockery 1.4.0
|
|
// Project: https://github.com/mfncooper/mockery
|
|
// Definitions by: jt000 <https://github.com/jt000>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
|
|
interface MockeryEnableArgs {
|
|
useCleanCache?: boolean;
|
|
warnOnReplace?: boolean;
|
|
warnOnUnregistered?: boolean;
|
|
}
|
|
|
|
export declare function enable(args?: MockeryEnableArgs): void;
|
|
export declare function disable(): void;
|
|
|
|
export declare function registerMock(name: string, mock: any): void;
|
|
export declare function deregisterMock(name: string): void;
|
|
|
|
export declare function registerSubstitute(name: string, substitute: string): void;
|
|
export declare function deregisterSubstitute(name: string): void;
|
|
|
|
export declare function registerAllowable(name: string, unhook?: boolean): void;
|
|
export declare function deregisterAllowable(name: string): void;
|
|
|
|
export declare function registerAllowables(names: string[]): void;
|
|
export declare function deregisterAllowables(names: string[]): void;
|
|
|
|
export declare function deregisterAll(): void;
|
|
export declare function resetCache(): void;
|
|
export declare function warnOnUnregistered(value: boolean): void;
|
|
export declare function warnOnReplace(value: boolean): void;
|