Skip to content

Commit 529ef76

Browse files
committed
added conditional console output for seeVisualDiffElement
1 parent 06859e3 commit 529ef76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ class ResembleHelper extends Helper {
132132

133133
options.boundingBox = await this._getBoundingBox(selector);
134134
var misMatch = await this._fetchMisMatchPercentage(baseImage, options);
135-
console.log("MisMatch Percentage Calculated is " + misMatch);
135+
if(this.config.consoleOutput)
136+
{
137+
console.log("MisMatch Percentage Calculated is " + misMatch);
138+
}
136139
assert(misMatch <= options.tolerance, "MissMatch Percentage " + misMatch);
137140
}
138141
else {

0 commit comments

Comments
 (0)