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",