Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jun 23, 2024
1 parent 8a67787 commit acb99b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/ExampleWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ const prepareEnvironment = options => {
height: 600,
style: {},
addEventListener: () => {},
setAttribute: () => {},
getAttribute: name => ({
'data-pixel-ratio': '1'
}[name]),
Expand Down
2 changes: 1 addition & 1 deletion test/TestTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const extrinsicSimilarity = (currentCaptures, referenceCaptures, key='extrinsic'
}
}

result[name] = 1 - (totalSimilarity / totalCount);
result[name] = 1 - (totalSimilarity / (totalCount || 1));
}

return result;
Expand Down

0 comments on commit acb99b6

Please sign in to comment.