Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add matching for field/value #19

Open
everflux opened this issue Dec 22, 2020 · 2 comments
Open

Add matching for field/value #19

everflux opened this issue Dec 22, 2020 · 2 comments

Comments

@everflux
Copy link
Contributor

I emit custom events and would like to check that the events are emitted correctly and in the right order. For comparison I would like to use the value of a custom field.
In addition to support that in the ExpectedEvent it would be great if a matcher containsExactly could be provided.

@gunnarmorling
Copy link
Member

Could you share how you envision how using this API looks like? Thanks!

@everflux
Copy link
Contributor Author

everflux commented Jan 4, 2021

I think about something like

.filter(...) // only my specific types
.containsExactly(event("A").with("key", "value"), event("B").with("key","value"))

But I don't know if this is a corner case which is not of general interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants