Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
output both path to json mismatches to make debugging test failures e…
Browse files Browse the repository at this point in the history
…asier
  • Loading branch information
Dane Springmeyer committed Mar 1, 2013
1 parent e8566e8 commit 8efc1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rendering.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ helper.files('rendering', 'mml', function(file) {
*/
fs.writeFileSync(actual,JSON.stringify(actual_json,null,4));
fs.writeFileSync(expected,JSON.stringify(expected_json,null,4));
throw new Error('failed: ' + actual + ' not equal to expected: ' + result);
throw new Error('failed: xml ' + result + ' in json form does not match expected result:\n' + actual + ' (actual)\n' + expected + ' (expected)');
} else {
// cleanup any actual renders that no longer fail
try {
Expand Down

0 comments on commit 8efc1c5

Please sign in to comment.