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