Skip to content

Commit

Permalink
runner.js: fix uncaught() Pending
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Feb 28, 2019
1 parent 22831c5 commit 0554844
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,9 @@ Runner.prototype.runSuite = function(suite, fn) {
* @private
*/
Runner.prototype.uncaught = function(err) {
if (err instanceof Pending) {
return;
}
if (err) {
debug('uncaught exception %O', err);
} else {
Expand Down

0 comments on commit 0554844

Please sign in to comment.