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

Feature: Implement yesno.mockMatchingFunction() #91

@keithcom

Description

@keithcom

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions