testaro 60.5.0 → 60.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/testaro/motion.js +1 -1
package/package.json
CHANGED
package/testaro/motion.js
CHANGED
|
@@ -65,7 +65,7 @@ exports.reporter = async page => {
|
|
|
65
65
|
// Get the count of differing pixels between the shots.
|
|
66
66
|
const pixelChanges = pixelmatch(shoot0PNG.data, shoot1PNG.data, null, width, height);
|
|
67
67
|
// Get the ratio of differing to all pixels as a percentage.
|
|
68
|
-
const changePercent = 100 * pixelChanges / (width * height);
|
|
68
|
+
const changePercent = Math.round(100 * pixelChanges / (width * height));
|
|
69
69
|
// Free the memory used by screenshots.
|
|
70
70
|
shoot0PNG = shoot1PNG = shoot0PNGBuffer = shoot1PNGBuffer = null;
|
|
71
71
|
// If any pixels were changed:
|