Skip to content

Commit

Permalink
test: refactor test-beforeexit-event-exit.js
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
cjihrig authored and italoacasas committed Jan 18, 2017
1 parent f0a10ff commit 404867b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions 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();

0 comments on commit 404867b

Please sign in to comment.