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 <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • 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
Original file line number Diff line number Diff line change
@@ -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.