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