-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Diff is not shown even when two objects are different #793
Comments
I think that this is because https://github.com/jquery/qunit/blob/master/src/dump.js#L163#L165. Here since your dept at which the difference is seen is more than the default MaxDepth(5) , It gives [Object object]. Also here the diff is not seen because even though its different (and that's why it gives an error), the displayed text is essentially the same(i.e object Object). If you change the MaxDepth (https://github.com/jquery/qunit/blob/master/src/dump.js#L130) to 7 or 8, it will show a diff. |
@gauravmittal1995 Thanks, I was not aware of |
This would require exposing some additional logic, but it might be interesting to show a notice next to the assertion. Potentially even providing a link to rerun the test with a higher max depth. |
@scottgonzalez I think that's a great idea. Shall I open an issue for the same? |
For the following deepEqual comparison, no diff is displayed. Is this an expected behavior?
Output:

Diff is also not show in various other complex object assertions too.
The text was updated successfully, but these errors were encountered: