1 2 3 4 5 6 7 8 9 | 1× 1× 1× 44× 1× | import { MatchError } from "../_errors"; export class FunctionCallMatchError extends MatchError { public constructor(actualValue: any, shouldMatch: boolean, args?: Array<any>) { super(actualValue, "function to be called", `Expected function ${!shouldMatch ? "not " : ""}to be called${args ? " with [" + args.map(arg => JSON.stringify(arg)).join(", ") + "]" : ""}.`); } } |