From e1476fa153651bcbba50c8de74b863bf5044e6e1 Mon Sep 17 00:00:00 2001 From: Vladimir Ratsev Date: Thu, 13 Oct 2016 00:07:22 +0500 Subject: [PATCH] consider promise rejection as an exception (#15) --- src/runner/test/assert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/test/assert.js b/src/runner/test/assert.js index 1ab3906..a14bbb5 100644 --- a/src/runner/test/assert.js +++ b/src/runner/test/assert.js @@ -279,7 +279,7 @@ module.exports = function createAssert(scope, testCode, settings){ if (testResult && typeof testResult.then === 'function') { async++; - testResult.then(__asyncDone, __asyncDone); + testResult.then(__asyncDone, __exception); } } catch(e) { return __exception(e);