diff --git a/lib/test.js b/lib/test.js index fdb060d4..38adb9fc 100644 --- a/lib/test.js +++ b/lib/test.js @@ -109,7 +109,7 @@ Test.prototype.run = function () { if (!self.calledEnd) { self.end(); } - }).catch(function onError(err) { + })['catch'](function onError(err) { self.fail(err); self.end(); });