Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Show diff for keys assertion #264
Use the show diff feature when the
Currently, when a
That statement makes it impossible to see which keys the source object should or should not have. In this case, Object has more keys than expected, but I don't know what they are.
With this pull request, the output of that same assertion looks like this:
Now I can see that the
On lines 988 and 989, the reason for the .sort() call is to make the diff look nicer. Without it, the keys could be in any order and the diff would just show all the keys for both expected and actual.
All mocha tests pass.