1 |
|
2 | export declare type TargetFunction<Return> = () => Return;
|
3 | export declare class FunctionMatchers<Return = any> {
|
4 | private fn;
|
5 | constructor(fn: TargetFunction<Return>);
|
6 | private execute;
|
7 | private match;
|
8 | get throws(): jest.JestMatchersShape<jest.Matchers<void, any>, jest.Matchers<Promise<void>, any>>;
|
9 | get returns(): jest.JestMatchersShape<jest.Matchers<void, Return>, jest.Matchers<Promise<void>, Return>>;
|
10 | }
|
11 | export declare function expectFunction<Return = any>(fn: TargetFunction<Return>): FunctionMatchers<Return>;
|
12 | export default expectFunction;
|