mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
fix issue with jimp library
This commit is contained in:
parent
2c2cc5565b
commit
7f3cead5fb
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export async function comparePngs(
|
|||
// will still show up as diffs, but upping this will not help that. Instead we keep the threshold low, and expect
|
||||
// some the diffCount to be lower than our own threshold value.
|
||||
const THRESHOLD = 0.1;
|
||||
const { image, percent } = Jimp.diff(session, baseline, THRESHOLD);
|
||||
const { diff: image, percent } = Jimp.diff(session, baseline, THRESHOLD);
|
||||
log.debug(`percent different: ${percent}`);
|
||||
if (percent > 0) {
|
||||
image.write(diffPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue