Skip to content

Commit

Permalink
Merge pull request #97 from gemini-testing/HERMIONE-1212
Browse files Browse the repository at this point in the history
fix: return diffArea in diffClusters if shouldCluster is false and createDiffImage is true
  • Loading branch information
KuznetsovRoman authored Oct 11, 2023
2 parents 495feda + 0c92966 commit 570927b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,6 @@ exports.calcDiffImage = async (img1, img2, comparator, {highlightColor, shouldCl
differentPixels,
totalPixels,
diffBounds: diffArea.area,
diffClusters: diffClusters.clusters
diffClusters: getDiffClusters(diffClusters, diffArea, {shouldCluster})
};
};

0 comments on commit 570927b

Please sign in to comment.