Closed codan84 closed 2 years ago
Looking at the code (also tried @5.12.0
) the ById
functions are never returned:
var _this = {
openAPIExpectation: openAPIExpectation,
mockAnyResponse: mockAnyResponse,
mockWithCallback: mockWithCallback,
mockSimpleResponse: mockSimpleResponse,
setDefaultHeaders: setDefaultHeaders,
verify: verify,
verifySequence: verifySequence,
reset: reset,
clear: clear,
bind: bind,
retrieveRecordedRequests: retrieveRecordedRequests,
retrieveRecordedRequestsAndResponses: retrieveRecordedRequestsAndResponses,
retrieveActiveExpectations: retrieveActiveExpectations,
retrieveRecordedExpectations: retrieveRecordedExpectations,
retrieveLogMessages: retrieveLogMessages
};
Ok this has been fixed 2 months ago: https://github.com/mock-server/mockserver-client-node/pull/127 How long before a release?
I guess this can be used until the release:
npm i -D https://github.com/mock-server/mockserver-client-node
@jamesdbloom Can you make a release please?
The next released in planned in the next few days just a couple more small issues to sort out first
Describe the issue When trying to verify an expectation by expectation ID getting an error.
What you are trying to do Trying to verify an expectation by ID.
MockServer version 5.12.0
To Reproduce
In test:
Furthermore:
TypeError: client.verifyById is not a function
Expected behaviour Expectation is verified correctly
MockServer Log N/A