-
Notifications
You must be signed in to change notification settings - Fork 5
Better string and object diffs #3
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
Comments
Any idea where one would start on the path to fixing this? |
@Whoaa512 Thanks! With this power-assert-runtime project, I'm going to provide a way to power-assert users to create original renderer by themselves. Developer documentation does not exist yet (sorry), however you will be able to create your pretty-diff renderer like |
I think it would be great if we were able to build some understanding into the renderer for object diffs and the graph: var x = {a: 'a', b: 'b', c: 'c', ....lotsMoreProperties};
var y = {a: 'a', b: 'b', c: 'notC', ....lotsMoreProperties};
t.deepEqual(x, y); Should produce: t.deepEqual(x, y);
| |
| {c: 'notC', ...}
{c: 'c', ...} In other words, if it's possible, show where objects differ right in the graph, the Perhaps we can use color codes. Green |
@jamestalmage Ah, that's nice to have! |
The best object diff I've seen to date is the one produced by unexpectedjs. In not sure if that code is really reusable, but I recommend taking a look |
@Munter Thanks! |
remove `_capt` and `_expr` from empower-core
The text was updated successfully, but these errors were encountered: