assertthat
Version:
assertthat provides fluent TDD.
5 lines (4 loc) • 348 B
TypeScript
import { AssertionFailed } from '../../errors';
import { Result } from 'defekt';
declare const assertFunctionIsThrowingAsync: <TError extends Error = Error>(actual: (...args: any[]) => any, expected?: string | RegExp | ((ex: TError) => boolean) | undefined) => Promise<Result<undefined, AssertionFailed>>;
export { assertFunctionIsThrowingAsync };