Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Setting threshold value for diff #4

Open
johnvarney opened this issue May 8, 2017 · 1 comment
Open

Setting threshold value for diff #4

johnvarney opened this issue May 8, 2017 · 1 comment

Comments

@johnvarney
Copy link

I am trying to adjust the threshold value for Niffy but do not see the threshold option described in Nightmare as the Niffy info suggests.

I tried:
niffy = new Niffy(
baseUrl,
testUrl,
{ show: true,
threshold: 0.02}
)
but did not seem to change anything.
Thanks

@johnvarney
Copy link
Author

Worked it out. Threshold had to be 0.002 as there was only a few pixels changing on the particular test.

mousemke referenced this issue in mousemke/niffy Sep 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant