earljs
Version:
Ergonomic, modern and type-safe assertion library
19 lines (18 loc) • 488 B
TypeScript
interface AssertionErrorOptions {
message: string;
stack: string;
actual?: string;
expected?: string;
extraMessage?: string;
}
/**
* Assertion error containing optional info about actual / expected value which
* can be used by test runners like Mocha to pretty print.
*/
export declare class AssertionError extends Error {
actual?: string;
expected?: string;
constructor(options: AssertionErrorOptions);
static getCleanStack(): string;
}
export {};