From a591e50bce4a6abc97f11063f91e6d1d25decebc Mon Sep 17 00:00:00 2001 From: puneet0191 Date: Wed, 8 Jul 2020 18:13:53 +0530 Subject: [PATCH] 1.9.2 fix bug with default skip failure option --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8e0e182..99645fa 100644 --- a/index.js +++ b/index.js @@ -331,7 +331,7 @@ class ResembleHelper extends Helper { this.debug("MisMatch Percentage Calculated is " + misMatch + " for baseline " + baseImage); - if (options.skipFailure === false) { + if (!options.skipFailure) { assert(misMatch <= options.tolerance, "Screenshot does not match with the baseline " + baseImage + " when MissMatch Percentage is " + misMatch); } } diff --git a/package.json b/package.json index 86daff0..7d07f9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeceptjs-resemblehelper", - "version": "1.9.1", + "version": "1.9.2", "description": "Resemble Js helper for CodeceptJS, with Support for Webdriver, Puppeteer & Appium", "repository": { "type": "git",