diff --git a/test/rendering.test.js b/test/rendering.test.js index ae12339..3182e0d 100644 --- a/test/rendering.test.js +++ b/test/rendering.test.js @@ -20,7 +20,11 @@ helper.files('rendering', 'mml', function(file) { filename: file }).render(mml, function (err, output) { if (err) { - throw err; + if (Array.isArray(err)){ + err.forEach(carto.writeError); + } else { + throw err; + } } else { renderResult = output; var result = helper.resultFile(file);