-
Notifications
You must be signed in to change notification settings - Fork 107
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 better diffing for calledWith
and calledWithExactly
failures
#124
Comments
Any status on this? My team is facing this issue. Using |
I've got a PR open here #141 |
I had the same problem and it was solved by using JSON.stringify(). Try this: const fooObject = { stub(fooObject); expect(stub).to.be.calledWithExactly(JSON.stringify(barObject)); |
Any news on this? |
Any news? 👀 |
Any news on this? |
Currently when a test fails it provides output the following way:
e.g.
prints
It would be nice if this was a proper diff similar to what Chai's deep equal assertions provide.
e.g.
prints
Editors such as IntelliJ IDEA have support for the latter style and will provide a nicely formatted diff in their diffing tools if that convention is followed.
The text was updated successfully, but these errors were encountered: