Increase pixelmatch threshold

This commit is contained in:
Sergey Papushin
2020-04-19 13:44:18 -05:00
parent f2ca3b8379
commit 231d7ffc8e
+1 -1
View File
@@ -113,7 +113,7 @@ describe("Layout Rendering Tests", function() {
const { width, height } = actualImage;
const diff = new PNG({ width, height });
const numPixelsDifferent = pixelmatch(actualImage.data, expectedImage.data, diff.data, width, height);
const numPixelsDifferent = pixelmatch(actualImage.data, expectedImage.data, diff.data, width, height, { threshold: 0.2 });
if (numPixelsDifferent === 0) {
showWarning = true;