From 0b3964c82740ad8665545e72ef31344b374db5f9 Mon Sep 17 00:00:00 2001 From: rejas Date: Wed, 17 Mar 2021 21:54:14 +0100 Subject: [PATCH] Use es6 notation in helloworld tests --- tests/configs/modules/helloworld/helloworld_default.js | 3 +-- tests/e2e/modules/helloworld_spec.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/configs/modules/helloworld/helloworld_default.js b/tests/configs/modules/helloworld/helloworld_default.js index d04f2884..9d516aef 100644 --- a/tests/configs/modules/helloworld/helloworld_default.js +++ b/tests/configs/modules/helloworld/helloworld_default.js @@ -3,8 +3,7 @@ * By Rodrigo Ramírez Norambuena https://rodrigoramirez.com * MIT Licensed. */ - -var config = { +let config = { port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], diff --git a/tests/e2e/modules/helloworld_spec.js b/tests/e2e/modules/helloworld_spec.js index 21e33985..6a744e51 100644 --- a/tests/e2e/modules/helloworld_spec.js +++ b/tests/e2e/modules/helloworld_spec.js @@ -8,7 +8,7 @@ const afterEach = global.afterEach; describe("Test helloworld module", function () { helpers.setupTimeout(this); - var app = null; + let app = null; beforeEach(function () { return helpers