Use const instead of let when finding chrome version

This commit is contained in:
BryceLTaylor 2020-09-23 17:06:13 -04:00
parent a2d2eca54c
commit 2e79da8a1c

View file

@ -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 {
} }
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 = {