all files / core/errors/ function-call-match-error.ts

85.71% Statements 6/7
0% Branches 0/4
50% Functions 1/2
80% Lines 4/5
1 2 3 4 5 6 7 8 9          
import { MatchError } from "./match-error";
 
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.join(", ") + "]": ""}.`);
  }
}