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: #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 30, 2017
1 parent 0a2fb0d commit af2bea7
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 af2bea7

Please sign in to comment.