Open dbushong opened 10 years ago
This would require some smarter deepEqual logic.
@johan thoughts?
I couldn't agree more; patches to improve this situation are warmly welcome and encouraged.
The current output is one step up from stating your two objects did not match, and showing two huge identical JSON serializations, which I think was the behaviour of assertive's predecessor.
The not-yet-exposed stringify
(with potential additional needed tweaks) might be one approach, but I assume non-serialization-based logic in deepEqual
is the more solid workable approach.
Something like deep-diff might be useful for displaying the differences in a concise way.
In this case it's a tiny structure and easy to hunt down, but for large structures figuring out which thing has an
undefined
can be odious.