test: use common.crashOnUnhandledRejection

PR-URL: https://github.com/nodejs/node/pull/17229
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Kurt Hsu 2017-11-22 16:21:37 +08:00 committed by James M Snell
parent 6b56be21a4
commit 01dc6d26dc

View File

@ -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();