-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use fancy diffs for node's assert.deepEqual #1400
Conversation
35c1580
to
64dfc0b
Compare
@glenjamin So it appears when the |
It's not documented extremely well, I might send a PR up to Node core to make it explicit. The assert module is marked as "Stable", so should not change anymore. This function hints at this behvaiour: And here's the |
@boneskull @glenjamin is there anything holding of a merge? |
This PR is currently no longer mergable, and with the inclusion of unexpectedjs I think it's no longer relevant either. Feel free to update if you think it still adds value though, and thanks for the effort! |
Could you point me towards the PR for the unexpected change you're referring to? I tried to search but couldn't seem to find anything. The specific aim here was to improve formatting when using Node core's |
This one (which was indeed tricky to find): #1349 But now that I'm looking at it, it seems this was only for the HTML reporter. If you'd like to rebase your changes I'd be happy to have an other look at merging them :) |
I looked into this a bit more, the change is no longer needed due to #1626 which changes the default behaviour to always show diffs. |
@glenjamin 馃憤 thanks |
Is there a reason why only opted-in 3rd-party libraries get the fancy coloured/unified diff feature?
I wasn't sure, so here's a PR that detects node core's
deepEqual
and lets it get the nice diff behaviour. 馃帀