if test does not error (as expected) then assert false instead of hanging
This commit is contained in:
parent
481a0fc406
commit
51baca34ae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user