This repository has been 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
requestMatcher
of typeproperty
to the request body. In other words, the request expectation will only match requests with JSON bodies containing all of the properties listed in theproperties
object of the matcher.