I have a test that is using isEqual to check if two variables that are strings (larger csv converted to string with JSON.stringify) are equal to each other. This works fine. However, if the test fails I’d like to log the differences between the two variables.
Here is my test data:
pm.test("Baseline and Updated CSVs Match!", () => {
const firstResponse = (pm.environment.get('balance_by_event_original'));
const secondResponse = (pm.environment.get('balance_by_event_new'));
const isEqual = _.isEqual(firstResponse, secondResponse);
pm.expect(isEqual).to.be.true;
});
Thanks!