We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42eb5d commit efe9b97Copy full SHA for efe9b97
test/parallel/test-beforeexit-event-exit.js
@@ -20,11 +20,8 @@
20
// USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22
'use strict';
23
-require('../common');
24
-const assert = require('assert');
+const { mustNotCall } = require('../common');
25
26
-process.on('beforeExit', function() {
27
- assert.fail('exit should not allow this to occur');
28
-});
+process.on('beforeExit', mustNotCall('exit should not allow this to occur'));
29
30
process.exit();
0 commit comments