Skip to content

Support for Matchers in Messages #205

@olivzz

Description

@olivzz

Hi,
Do you have support/examples to use Matchers like Like, Term, Format for messages? I am able use Matchers with api but not for messages.
I am trying to perform following action:
(message_pact
.given(provider_state)
.expects_to_receive(provider_desc)
.with_content(expected_event)
.with_metadata({
"Content-Type": "application/json"
})
)
but not sure where should I add a matcher so that I do not compare the exact values of the content in expected_event instead just their types. Your support is highly appreciated. thanks in advance.

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