aboutsummaryrefslogtreecommitdiff
path: root/test/e2e/runner.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-08-01 11:46:57 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-01 11:46:57 +0000
commit8e7f3ea074d16a6c89fa7366a1f64302724f661f (patch)
tree40e151399cfb1d9a3afd8576e05173a33a90b03f /test/e2e/runner.js
parentd0a09480b396e05d58957d193490e14a4ed12ccf (diff)
parentbd5d5c9df7e39efa7ecbb1bbfbd036906d1e9535 (diff)
Merge branch 'eslint-update' into 'develop'
update ESLint See merge request pleroma/pleroma-fe!1576
Diffstat (limited to 'test/e2e/runner.js')
-rw-r--r--test/e2e/runner.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/e2e/runner.js b/test/e2e/runner.js
index 2a5c6ef9..57abc2e1 100644
--- a/test/e2e/runner.js
+++ b/test/e2e/runner.js
@@ -1,6 +1,6 @@
// 1. start the dev server using production config
process.env.NODE_ENV = 'testing'
-var server = require('../../build/dev-server.js')
+const server = require('../../build/dev-server.js')
// 2. run the nightwatch test suite against it
// to run in additional browsers:
@@ -9,7 +9,7 @@ var server = require('../../build/dev-server.js')
// or override the environment flag, for example: `npm run e2e -- --env chrome,firefox`
// For more information on Nightwatch's config file, see
// http://nightwatchjs.org/guide#settings-file
-var opts = process.argv.slice(2)
+let opts = process.argv.slice(2)
if (opts.indexOf('--config') === -1) {
opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
}
@@ -17,8 +17,8 @@ if (opts.indexOf('--env') === -1) {
opts = opts.concat(['--env', 'chrome'])
}
-var spawn = require('cross-spawn')
-var runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
+const spawn = require('cross-spawn')
+const runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
runner.on('exit', function (code) {
server.close()