Skip to content

Commit

Permalink
fix: Исправлена ошибка порядка при сравнении допустимой разницы скрин…
Browse files Browse the repository at this point in the history
…шотов
  • Loading branch information
verdel authored and qtm committed Jan 28, 2022
1 parent c4e5f27 commit 4bdae8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function takeScreenshot({ client, description, check, methodOptions, callback })
}
}

if (result.misMatchPercentage > allowedMisMatchPercentage / 100) {
if (result.misMatchPercentage > allowedMisMatchPercentage) {
callback({ status: 'error', error: 'Screenshot does not match', result })
return
}
Expand Down

0 comments on commit 4bdae8f

Please sign in to comment.