Skip to content

Commit

Permalink
test: use common.crashOnUnhandledRejection
Browse files Browse the repository at this point in the history
PR-URL: #17229
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Kurt Hsu authored and MylesBorins committed Dec 12, 2017
1 parent 017379e commit e3db509
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/async-hooks/test-promise.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
'use strict';

const common = require('../common');

const assert = require('assert');
const initHooks = require('./init-hooks');
const { checkInvocations } = require('./hook-checks');

common.crashOnUnhandledRejection();

const hooks = initHooks();

hooks.enable();
Expand Down

0 comments on commit e3db509

Please sign in to comment.