diff --git a/test/node-binding.test.cjs b/test/node-binding.test.cjs index 9ae2a839..4c2cc8ec 100644 --- a/test/node-binding.test.cjs +++ b/test/node-binding.test.cjs @@ -54,12 +54,15 @@ test("Correctly parses threshold", async (t) => { path.join(IMAGES_PATH, "donkey.png"), path.join(IMAGES_PATH, "donkey-2.png"), path.join(IMAGES_PATH, "diff.png"), - options + { + ...options, + threshold: 0.5, + } ); t.is(reason, "pixel-diff"); - t.is(diffCount, 50332); - t.is(diffPercentage, 1.31007003768); + t.is(diffCount, 82109); + t.is(diffPercentage, 2.13717993968); }); test("Correctly parses antialiasing", async (t) => { @@ -67,7 +70,10 @@ test("Correctly parses antialiasing", async (t) => { path.join(IMAGES_PATH, "donkey.png"), path.join(IMAGES_PATH, "donkey-2.png"), path.join(IMAGES_PATH, "diff.png"), - options + { + ...options, + antialiasing: true, + } ); t.is(reason, "pixel-diff");