Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

1.2.0

Latest
Compare
Choose a tag to compare
@SQiShER SQiShER released this 05 Sep 09:55
  • 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 type property to the request body. In other words, the request expectation will only match requests with JSON bodies containing all of the properties listed in the properties object of the matcher.