e2ed
Version:
E2E testing framework over Playwright
7 lines (6 loc) • 389 B
TypeScript
import type { AsyncVoid, LogParams } from '../../types/internal';
/**
* Asserts that a function throws an exception when called.
* If the function returns a promise, then asserts that this promise will be rejected.
*/
export declare const assertFunctionThrows: <ReturnedValue extends AsyncVoid>(func: (this: void) => ReturnedValue, check: string, payload?: LogParams) => ReturnedValue;