diff --git a/test/_transformation-helper.js b/test/_transformation-helper.js index 0bf356e65c..882d0e85c1 100644 --- a/test/_transformation-helper.js +++ b/test/_transformation-helper.js @@ -129,7 +129,7 @@ module.exports = function (suiteOpts, taskOpts, dynamicOpts) { delete task.options.throws; assert.throws(runTask, function (err) { - return err.message.indexOf(throwMsg) >= 0; + return throwMsg === true || err.message.indexOf(throwMsg) >= 0; }); } else { runTask();