This repository was archived by the owner on Jan 7, 2020. It is now read-only.
-
Added ability to verify requests based on certain matchers. Example:
server().expectRequest({ method: "POST", url: '/log', requestMatcher: { matcherType: 'property', properties: { level: 'ERROR' } } });This will apply a
requestMatcherof typepropertyto the request body. In other words, the request expectation will only match requests with JSON bodies containing all of the properties listed in thepropertiesobject of the matcher.