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

feat: List and map matchers #36

Merged
merged 3 commits into from Oct 7, 2022
Merged

Conversation

trejdych
Copy link
Contributor

@trejdych trejdych commented Oct 3, 2022

That PR has covered few matchers from #3

List

  • [expect.listContaining(List)]
    named: containsAll(List<Param>)

  • [expect.not.listContaining(List)]
    not matcher exists. I've added test to not.containsAll()

  • [.toContain(item)]
    named: contains(Param)

Map

  • [.toHaveProperty(path, value?)]
    split into:
    containsPair(KeyParam, ValueParam) and containsKey(KeyParam)

@trejdych trejdych marked this pull request as ready for review October 3, 2022 18:13
@rrousselGit
Copy link
Contributor

Hello! Could you update your branch with main to see if the CI passes?

@trejdych
Copy link
Contributor Author

trejdych commented Oct 7, 2022

Sure, on it :)

@trejdych
Copy link
Contributor Author

trejdych commented Oct 7, 2022

hmm I haven't properly linked with the #3 issue however it isn't really close that issue, there is still missing a few matchers

@rrousselGit
Copy link
Contributor

That's fine. I don't think the issue should be linked

Copy link
Contributor

@rrousselGit rrousselGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your work!

@rrousselGit rrousselGit merged commit 6c5a492 into invertase:main Oct 7, 2022
@trejdych trejdych deleted the list_matcher branch October 7, 2022 13:13
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

Successfully merging this pull request may close these issues.

None yet

2 participants