Skip to content

Commit

Permalink
consider promise rejection as an exception (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzyk authored and lahmatiy committed Oct 12, 2016
1 parent e90196c commit e1476fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner/test/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e1476fa

Please sign in to comment.