@contract-case/case-plugin-base
Version:
Plugin framework for writing plugins for the ContractCase test framework
24 lines • 937 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.coreLookupMatcher = void 0;
const case_plugin_dsl_types_1 = require("@contract-case/case-plugin-dsl-types");
/**
* Creates a matcher descriptor for a lookupable matcher.
* @public
* @remarks
*
* Useful if you want to automatically name lookupable matcher descriptors in your plugin.
*
* Note that lookup matchers must have identical contents when rendered.
*
* @param uniqueName - the name for this lookupable matcher
* @param child - the contents of this lookupable matcher
* @returns a {@link @contract-case/case-plugin-dsl-types#LookupableMatcher}
*/
const coreLookupMatcher = (uniqueName, child) => ({
'_case:matcher:type': case_plugin_dsl_types_1.LOOKUP_MATCHER_TYPE,
'_case:matcher:uniqueName': uniqueName,
'_case:matcher:child': child,
});
exports.coreLookupMatcher = coreLookupMatcher;
//# sourceMappingURL=lookup.js.map