all files / core/errors/ less-than-match-error.ts

100% Statements 7/7
100% Branches 2/2
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9     15×    
import { MatchError } from "../_errors";
 
export class LessThanMatchError extends MatchError {
 
  public constructor(actualValue: number, upperLimit: number, shouldMatch: boolean) {
    super(actualValue, upperLimit, `Expected ${actualValue} ${!shouldMatch ? "not " : ""}to be less than ${upperLimit}.`);
  }
}