Skip to content
Permalink
Browse files

test: refactor test-beforeexit-event-exit using mustNotCall

PR-URL: #28901
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
Himself65 authored and targos committed Jul 30, 2019
1 parent c42eb5d commit efe9b97d4028006c2ff1fc63df96945bac5131d3
Showing with 2 additions and 5 deletions.
  1. +2 −5 test/parallel/test-beforeexit-event-exit.js
@@ -20,11 +20,8 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';
require('../common');
const assert = require('assert');
const { mustNotCall } = require('../common');

process.on('beforeExit', function() {
assert.fail('exit should not allow this to occur');
});
process.on('beforeExit', mustNotCall('exit should not allow this to occur'));

process.exit();

0 comments on commit efe9b97

Please sign in to comment.
You can’t perform that action at this time.