summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2017-01-02 12:41:18 -0500
committerMyles Borins <mylesborins@google.com>2017-04-18 20:01:51 -0400
commitafea1d041e2817551ead3e7703142d7567fbb58b (patch)
tree2f273c2d939e19006d540d730abc4ecd0111a048 /test
parentf0645200aa6131817f51975236da9f946b2859e9 (diff)
downloadnode-new-afea1d041e2817551ead3e7703142d7567fbb58b.tar.gz
test: refactor test-beforeexit-event-exit.js
PR-URL: https://github.com/nodejs/node/pull/10577 Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-beforeexit-event-exit.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/parallel/test-beforeexit-event-exit.js b/test/parallel/test-beforeexit-event-exit.js
index 6878135ce4..bd6162a468 100644
--- a/test/parallel/test-beforeexit-event-exit.js
+++ b/test/parallel/test-beforeexit-event-exit.js
@@ -1,9 +1,8 @@
'use strict';
-require('../common');
-const assert = require('assert');
+const common = require('../common');
process.on('beforeExit', function() {
- assert(false, 'exit should not allow this to occur');
+ common.fail('exit should not allow this to occur');
});
process.exit();