mirror of
https://github.com/ApfelTeeSaft/LiveSplitOne.git
synced 2026-08-27 11:43:41 +00:00
Increase pixelmatch threshold
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user