From 51baca34ae4f6aedd3164a3c62b3a08fc16d1e8d Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 23 Sep 2014 14:22:59 -0700 Subject: [PATCH] if test does not error (as expected) then assert false instead of hanging --- test/errorhandling.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/errorhandling.test.js b/test/errorhandling.test.js index 422f0cc..65054c8 100644 --- a/test/errorhandling.test.js +++ b/test/errorhandling.test.js @@ -20,6 +20,9 @@ helper.files('errorhandling', 'mml', function(file) { local_data_dir: path.join(__dirname, 'rendering'), filename: file }).render(mml); + // should not get here + assert.ok(false); + done(); } catch(err) { if (err.message.indexOf('***') > -1) throw err; var result = helper.resultFile(file); @@ -54,6 +57,9 @@ helper.files('errorhandling', 'mss', function(file) { // will match if the style was loaded from mml filename: basename }).renderMSS(mss); + // should not get here + assert.ok(false); + done(); } catch(err) { if (err.message.indexOf('***') > -1) throw err; var result = helper.resultFile(file);