-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
A matcher that checks that two arrays contain the same elements #114
Comments
Hey @denizdogan I like the sounds of this matcher! I'm not too sure about the name though, as How about something like
How would you feel about sending a PR for this? |
@mattphillips Yeah, I'm not sure what to call it, Maybe |
@denizdogan sorry missed the notification on this! I say lets just start a PR and we can decide on a name after 😆 |
@mattphillips Yeah, I'll start working on the PR today or tomorrow, I just had a lot of things to take care of IRL 👍 |
merged in #122 |
Is this issue closed? I still have the following error in jest
|
I just started learning jest and I have been bashing my head against the keyboard before finding this, I still suffer from not being able to solve the issue off Error: expect(received).toContainEqual(expected) // deep equality |
Feature Request
Description: A matcher that checks that two arrays contain the same elements. Examples:
Possible solution: Given arrays A and B, check that they are equal in length. For each element in A, check that the element is equal to any element in B. If it is, remove the element from both arrays. Loop until both arrays are empty.
The text was updated successfully, but these errors were encountered: