UNPKG

@case-contract-testing/case

Version:

Next-generation contract testing suite

7 lines (6 loc) 596 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.testExactMatch = void 0; const results_1 = require("../../../../entities/results"); const testExactMatch = (matcher, matchContext, actual) => (0, results_1.errorWhen)(actual !== matcher['case:matcher:example'], (0, results_1.matchingError)(matcher, `${(0, results_1.actualToString)(actual)} (${typeof actual}) is not exactly equal to ${(0, results_1.actualToString)(matcher['case:matcher:example'])} (${typeof matcher['case:matcher:example']})`, actual, matchContext)); exports.testExactMatch = testExactMatch;