Skip to content

Commit 94ef905

Browse files
committed
use currently-unhandled
1 parent 63b4782 commit 94ef905

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/test-worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ sourceMapSupport.install({
6060
}
6161
});
6262

63-
var loudRejection = require('loud-rejection/api')(process); // eslint-disable-line
63+
var currentlyUnhandled = require('currently-unhandled')(); // eslint-disable-line
6464
var serializeError = require('./serialize-error');
6565
var send = require('./send');
6666
var throwsHelper = require('./throws-helper');
@@ -132,7 +132,7 @@ process.on('ava-teardown', function () {
132132
}
133133
tearingDown = true;
134134

135-
var rejections = loudRejection.currentlyUnhandled();
135+
var rejections = currentlyUnhandled();
136136

137137
if (rejections.length === 0) {
138138
exit();

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
"common-path-prefix": "^1.0.0",
104104
"convert-source-map": "^1.2.0",
105105
"core-assert": "^0.2.0",
106+
"currently-unhandled": "^0.4.1",
106107
"debug": "^2.2.0",
107108
"empower-core": "^0.5.0",
108109
"figures": "^1.4.0",

0 commit comments

Comments
 (0)