diff options
author | cjihrig <cjihrig@gmail.com> | 2017-01-02 12:41:18 -0500 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-04-18 20:01:51 -0400 |
commit | afea1d041e2817551ead3e7703142d7567fbb58b (patch) | |
tree | 2f273c2d939e19006d540d730abc4ecd0111a048 /test | |
parent | f0645200aa6131817f51975236da9f946b2859e9 (diff) | |
download | node-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.js | 5 |
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(); |