import { assertFunctionIsThrowingAsync } from '../forFunctions/assertFunctionIsThrowingAsync'; import { AssertionFailed } from '../../errors'; import { Result } from 'defekt'; const assertActualIsThrowingAsync = async function ( actual: (...args: any[]) => any, expected?: string | RegExp | ((ex: TError) => boolean) ): Promise> { return assertFunctionIsThrowingAsync(actual, expected); }; export { assertActualIsThrowingAsync };