From 8efc1c5d5eb915041fa169ae72d1537cc677efc9 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 1 Mar 2013 15:08:29 -0500 Subject: [PATCH] output both path to json mismatches to make debugging test failures easier --- test/rendering.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rendering.test.js b/test/rendering.test.js index a653fa547..65bcea8ed 100644 --- a/test/rendering.test.js +++ b/test/rendering.test.js @@ -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 {