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 gibfahn committed Dec 20, 2017
1 parent 2b5bc37 commit ef6d68c
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 ef6d68c

Please sign in to comment.