Skip to content

Commit 3cde69a

Browse files
cjihrigMylesBorins
authored andcommitted
test: refactor test-beforeexit-event-exit.js
PR-URL: #10577 Reviewed-By: Italo A. Casas <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b85d15f commit 3cde69a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use strict';
2-
require('../common');
3-
const assert = require('assert');
2+
const common = require('../common');
43

54
process.on('beforeExit', function() {
6-
assert(false, 'exit should not allow this to occur');
5+
common.fail('exit should not allow this to occur');
76
});
87

98
process.exit();

0 commit comments

Comments
 (0)