Skip to content

Commit

Permalink
fix: reporter (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart committed Sep 23, 2024
1 parent 8a243af commit a416951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/visual-diff-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function flattenResults(session, browserData, fileData) {
});
}
const testData = fileData.tests.get(testName);
const bytediff = !t.passed && !info.diff && info.pixelsDiff === 0;
const bytediff = !t.passed && !!info?.diff && info?.pixelsDiff === 0;
if (!t.passed) {
if (bytediff) {
browserData.numByteDiff++;
Expand Down

0 comments on commit a416951

Please sign in to comment.