We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b85d15f commit 3cde69aCopy full SHA for 3cde69a
test/parallel/test-beforeexit-event-exit.js
@@ -1,9 +1,8 @@
1
'use strict';
2
-require('../common');
3
-const assert = require('assert');
+const common = require('../common');
4
5
process.on('beforeExit', function() {
6
- assert(false, 'exit should not allow this to occur');
+ common.fail('exit should not allow this to occur');
7
});
8
9
process.exit();
0 commit comments