@percy/report 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/generate.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@percy/report",
3
3
  "description": "Package to generate a build report and project summary report for Percy, BrowserStack's visual testing platform",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
7
7
  "author": "BrowserStack Pvt Ltd",
package/src/generate.js CHANGED
@@ -135,7 +135,7 @@ module.exports.Generate = async function (config) {
135
135
 
136
136
  comparison['diff-percentage'] = (comparison['diff-ratio'] * 100).toFixed(2)
137
137
  comparison['diff-color'] = "yellow"
138
- if (comparison['diff-percentage'] > diffThreshold) {
138
+ if (Number(comparison['diff-percentage']) > Number(diffThreshold)) {
139
139
  comparison['diff-color'] = "red"
140
140
  }
141
141
  return comparison