@sprucelabs/test-utils
Version:
Helpful utilities to make asserting more complicated conditions quick and easy! ⚡️
9 lines (8 loc) • 406 B
TypeScript
/**
* @deprecated errorAssertUtil -> errorAssert
*/
declare const errorAssertUtil: {
assertError(error: Error | import("@sprucelabs/error").default<any>, expectedCode: string, expectedPartialOptions?: Record<string, any>): void;
stripFriendlyMessageFromOptions(options: Record<string, any> | Record<string, any>[]): Record<string, any> | Record<string, any>[];
};
export default errorAssertUtil;