From 6f16d2f99f203f842b14c7732d3f568fcc199b11 Mon Sep 17 00:00:00 2001 From: Adi Roiban Date: Tue, 12 Jun 2018 13:12:08 +0100 Subject: [PATCH] Revert phantom test runner. --- tests/test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test.js b/tests/test.js index f4fed5f..782d4a8 100644 --- a/tests/test.js +++ b/tests/test.js @@ -8,9 +8,8 @@ var server = connect().use(serveStatic(path.join(__dirname, '/..'))).listen(8071 if (process.argv.indexOf('--phantomjs') !== -1) { childProcess.spawn('node_modules/.bin/mocha-phantomjs', ['http://localhost:8071/tests/tests.html'], { stdio: 'inherit' - }).on('exit', function(code) { + }).on('exit', function() { server.close(); - process.exit(code); // eslint-disable-line no-process-exit }); } else {