Skip to content

Commit 20481c3

Browse files
authored
Codestyle fix
1 parent e925b83 commit 20481c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class ResembleHelper extends Helper {
109109
}
110110

111111
options.boundingBox = await this._getBoundingBox(selector);
112-
var misMatch = await this._fetchMisMatchPercentage(baseImage, options);
112+
const misMatch = await this._fetchMisMatchPercentage(baseImage, options);
113113
this.debug("MisMatch Percentage Calculated is " + misMatch);
114114
assert(misMatch <= options.tolerance, "MissMatch Percentage " + misMatch);
115115
}
@@ -120,7 +120,7 @@ class ResembleHelper extends Helper {
120120
* @param screenShotImage Name of the screenshot Image (Screenshot Image Path is taken from Configuration)
121121
*/
122122
async _prepareBaseImage(screenShotImage) {
123-
var configuration = this.config;
123+
const configuration = this.config;
124124

125125
await this._createDir(configuration.baseFolder + screenShotImage);
126126

@@ -177,8 +177,8 @@ class ResembleHelper extends Helper {
177177
}
178178

179179
if (this.helpers['WebDriverIO']) {
180-
location = await browser.getLocation(selector);
181-
size = await browser.getElementSize(selector);
180+
location = await helper.browser.getLocation(selector);
181+
size = await helper.browser.getElementSize(selector);
182182
}
183183

184184
const bottom = size.height + location.y;

0 commit comments

Comments
 (0)