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 jasnell committed Nov 22, 2017
1 parent 6b56be2 commit 01dc6d2
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 01dc6d2

Please sign in to comment.