0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-22 09:16:48 -05:00

update tests

This commit is contained in:
liabru 2024-06-23 23:22:06 +01:00
parent 8a67787735
commit acb99b6f87
2 changed files with 2 additions and 1 deletions

View file

@ -185,6 +185,7 @@ const prepareEnvironment = options => {
height: 600,
style: {},
addEventListener: () => {},
setAttribute: () => {},
getAttribute: name => ({
'data-pixel-ratio': '1'
}[name]),

View file

@ -238,7 +238,7 @@ const extrinsicSimilarity = (currentCaptures, referenceCaptures, key='extrinsic'
}
}
result[name] = 1 - (totalSimilarity / totalCount);
result[name] = 1 - (totalSimilarity / (totalCount || 1));
}
return result;