Browse Source

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>
v7.x
cjihrig 8 years ago
committed by Italo A. Casas
parent
commit
af2bea70e0
No known key found for this signature in database GPG Key ID: 23EFEFE93C4CFFFE
  1. 5
      test/parallel/test-beforeexit-event-exit.js

5
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();

Loading…
Cancel
Save