Skip to content

Commit c5d70b9

Browse files
jonataskJonatas Kirsch
andauthored
Issue 48 - Add custom assert message (#64)
Co-authored-by: Jonatas Kirsch <[email protected]>
1 parent c0d999e commit c5d70b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,10 @@ class ResembleHelper extends Helper {
329329
await this._upload(awsC.accessKeyId, awsC.secretAccessKey, awsC.region, awsC.bucketName, baseImage, options.prepareBaseImage)
330330
}
331331

332-
this.debug("MisMatch Percentage Calculated is " + misMatch);
332+
this.debug("MisMatch Percentage Calculated is " + misMatch + " for baseline " + baseImage);
333333

334334
if (options.skipFailure === false) {
335-
assert(misMatch <= options.tolerance, "MissMatch Percentage " + misMatch);
335+
assert(misMatch <= options.tolerance, "Screenshot does not match with the baseline " + baseImage + " when MissMatch Percentage is " + misMatch);
336336
}
337337
}
338338

0 commit comments

Comments
 (0)