UNPKG

@case-contract-testing/case

Version:

Next-generation contract testing suite

11 lines (10 loc) 533 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CascadingContext = void 0; const check = (matcher, matchContext, actual) => matchContext.descendAndCheck(matcher['case:matcher:child'], matchContext, actual); const strip = (matcher, matchContext) => matchContext.descendAndStrip(matcher['case:matcher:child'], matchContext); exports.CascadingContext = { describe: (matcher, matchContext) => matchContext.descendAndDescribe(matcher['case:matcher:child'], matchContext), check, strip, };