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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "60.5.0",
3
+ "version": "60.5.1",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
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: