all files / core/errors/ exact-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     115×    
import { MatchError } from "./match-error";
 
export class ExactMatchError extends MatchError {
 
  public constructor(actualValue: any, expectedValue: any, shouldMatch: boolean) {
    super(actualValue, expectedValue, `Expected ${JSON.stringify(actualValue)} ${!shouldMatch ? "not ": ""}to be ${JSON.stringify(expectedValue)}.`);
  }
}