Commit 2e79da8a authored by BryceLTaylor's avatar BryceLTaylor

Use const instead of let when finding chrome version

parent a2d2eca5
...@@ -64,8 +64,8 @@ class SeleniumHelper { ...@@ -64,8 +64,8 @@ class SeleniumHelper {
} }
getChromeVersionNumber () { getChromeVersionNumber () {
let versionFinder = /\d+\.\d+/; const versionFinder = /\d+\.\d+/;
let versionArray = versionFinder.exec(chromedriverVersion); const versionArray = versionFinder.exec(chromedriverVersion);
if (versionArray === null) { if (versionArray === null) {
throw new Error('couldn\'t find version of chromedriver'); throw new Error('couldn\'t find version of chromedriver');
} }
...@@ -73,7 +73,7 @@ class SeleniumHelper { ...@@ -73,7 +73,7 @@ class SeleniumHelper {
} }
getSauceDriver (username, accessKey, name) { getSauceDriver (username, accessKey, name) {
let chromeVersion = this.getChromeVersionNumber(); const chromeVersion = this.getChromeVersionNumber();
// Driver configs can be generated with the Sauce Platform Configurator // Driver configs can be generated with the Sauce Platform Configurator
// https://wiki.saucelabs.com/display/DOCS/Platform+Configurator // https://wiki.saucelabs.com/display/DOCS/Platform+Configurator
let driverConfig = { let driverConfig = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment