Verification module of Pact.
Parameters:
Name | Type | Description |
---|---|---|
consumer |
String | the name of the consumer |
provider |
String | the name of the provider |
- Source:
Methods
(inner) interaction()
Creates an Interaction, adds to its internal collection and returns that Interaction.
- Source:
Returns:
(inner) verify(integrationFn) → {Promise}
Executes a promise chain that will eventually write the Pact file if successful.
Parameters:
Name | Type | Description |
---|---|---|
integrationFn |
function | the function that triggers a HTTP request to the provider |
- Source:
Returns:
- Type
- Promise