You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: