From da3908cec4912de355dc4c6c5ddd0e2e4b56b4ba Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 2 Jan 2017 12:41:18 -0500 Subject: [PATCH] test: refactor test-beforeexit-event-exit.js PR-URL: https://github.com/nodejs/node/pull/10577 Reviewed-By: Italo A. Casas Reviewed-By: Gibson Fahnestock Reviewed-By: Sakthipriyan Vairamani Reviewed-By: James M Snell --- test/parallel/test-beforeexit-event-exit.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-beforeexit-event-exit.js b/test/parallel/test-beforeexit-event-exit.js index 6878135ce4d6d3..bd6162a46804bf 100644 --- a/test/parallel/test-beforeexit-event-exit.js +++ b/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();