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
aria.utils.Json.diff and update to the Assert.assertJsonEquals method #1706
Hi, I would like to propose this change. The issue that this is trying to address is when using the this.assertJsonEquals method in the attester test cases, if the objects are large, then the output is very difficult to debug, as the entire objects are printed out. With this change, only the differences between the objects will be logged, meaning easier debugging. How this has been done is to add a new generic diff method to aria.utils.Json (with test cases provided, and detailed comments on this method), and then to update the Assert.js' assertJsonEquals method to use it.