From 231d7ffc8e281cb28906cc678f1feedb7debbf86 Mon Sep 17 00:00:00 2001 From: Sergey Papushin Date: Sun, 19 Apr 2020 13:44:18 -0500 Subject: [PATCH] Increase pixelmatch threshold --- test/rendering-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rendering-test.js b/test/rendering-test.js index c25300f..7bef1ed 100644 --- a/test/rendering-test.js +++ b/test/rendering-test.js @@ -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;