commit | 6faf1b3fc5f5dac1275e637ab5489483e8917d07 | [log] [tgz] |
---|---|---|
author | airnan <hernantorrisi@gmail.com> | Thu Jun 08 07:52:38 2023 -0400 |
committer | airnan <hernantorrisi@gmail.com> | Thu Jun 08 07:52:38 2023 -0400 |
tree | 81b6ffb2714b68eab0c0e302cbb8ca385f1f201e | |
parent | 8e180cab356e4c8796a57e92509c646a9423c6ee [diff] |
change threshold
diff --git a/test/index.js b/test/index.js index 607c49c..43ebbc9 100644 --- a/test/index.js +++ b/test/index.js
@@ -228,7 +228,7 @@ const diff = new PNG({width, height}); const result = pixelmatch(img1.data, img2.data, diff.data, width, height, {threshold: 0}); - if (result !== 0) { + if (result > 200) { throw new Error(`Animation failed: ${folderName} at frame: ${fileName}`) } }