Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Feature: Implement yesno.mockMatchingFunction() #91

Open
keithcom opened this issue Jul 29, 2020 · 0 comments
Open

Feature: Implement yesno.mockMatchingFunction() #91

keithcom opened this issue Jul 29, 2020 · 0 comments

Comments

@keithcom
Copy link
Contributor

Add a mockMatchingFunction method to the yesno class. This method will be passed a callback function that will be used to override the default internal matching function for matching requests with rules or the recorded mock array. The callback will be called with an object:

 {
  currentRequest,   // object with the request being processed
  recordedMocks,   // array of recorded mocks
  mockRules,          // array of rules
  maxMockCount   // the maximum number of times a mock can be used (defaults to 1, 0 is unlimited)
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant