From 2e79da8a1c9a128ac298a335185632c8fddcca6f Mon Sep 17 00:00:00 2001 From: BryceLTaylor Date: Wed, 23 Sep 2020 17:06:13 -0400 Subject: [PATCH] Use const instead of let when finding chrome version --- test/integration/selenium-helpers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/selenium-helpers.js b/test/integration/selenium-helpers.js index 0e3a0ac84..4dd333c6d 100644 --- a/test/integration/selenium-helpers.js +++ b/test/integration/selenium-helpers.js @@ -64,8 +64,8 @@ class SeleniumHelper { } getChromeVersionNumber () { - let versionFinder = /\d+\.\d+/; - let versionArray = versionFinder.exec(chromedriverVersion); + const versionFinder = /\d+\.\d+/; + const versionArray = versionFinder.exec(chromedriverVersion); if (versionArray === null) { throw new Error('couldn\'t find version of chromedriver'); } @@ -73,7 +73,7 @@ class SeleniumHelper { } getSauceDriver (username, accessKey, name) { - let chromeVersion = this.getChromeVersionNumber(); + const chromeVersion = this.getChromeVersionNumber(); // Driver configs can be generated with the Sauce Platform Configurator // https://wiki.saucelabs.com/display/DOCS/Platform+Configurator let driverConfig = {