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

.toHaveBeenCalledWith is using only the type of the arguments #3619

Closed
genintho opened this issue May 21, 2017 · 1 comment · Fixed by #3651
Closed

.toHaveBeenCalledWith is using only the type of the arguments #3619

genintho opened this issue May 21, 2017 · 1 comment · Fixed by #3651
Labels

Comments

@genintho
Copy link
Contributor

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
https://repl.it/IJyC/2

.toHaveBeenCalledWith seems to check only the type of objects.

What is the expected behavior?
I discover this while working with instances of Maps and my tests were all passing while my code was breaking.
The test should break if the object are "different". While an exact test might be impossible, maybe using a serialised version of the object (toString ?) would be great.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants