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;