summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-tab.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-repl-tab.js')
-rw-r--r--test/parallel/test-repl-tab.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/parallel/test-repl-tab.js b/test/parallel/test-repl-tab.js
index 6474d8e408..c075b8d4f1 100644
--- a/test/parallel/test-repl-tab.js
+++ b/test/parallel/test-repl-tab.js
@@ -1,5 +1,5 @@
'use strict';
-require('../common');
+const common = require('../common');
var assert = require('assert');
var repl = require('repl');
var zlib = require('zlib');
@@ -10,9 +10,7 @@ var testMe = repl.start('', putIn, function(cmd, context, filename, callback) {
callback(null, cmd);
});
-testMe._domain.on('error', function(e) {
- assert.fail();
-});
+testMe._domain.on('error', common.fail);
testMe.complete('', function(err, results) {
assert.equal(err, null);