UNPKG

@contract-case/case-core

Version:

Core functionality for the ContractCase contract testing suite

7 lines 689 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.testExactMatch = void 0; const case_plugin_base_1 = require("@contract-case/case-plugin-base"); const testExactMatch = (matcher, matchContext, actual) => (0, case_plugin_base_1.errorWhen)(actual !== matcher['_case:matcher:example'], (0, case_plugin_base_1.matchingError)(matcher, `${(0, case_plugin_base_1.actualToString)(actual)} (${typeof actual}) is not exactly equal to ${(0, case_plugin_base_1.actualToString)(matcher['_case:matcher:example'])} (${typeof matcher['_case:matcher:example']})`, actual, matchContext)); exports.testExactMatch = testExactMatch; //# sourceMappingURL=testExactMatch.js.map