0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-20 17:10:11 -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, height: 600,
style: {}, style: {},
addEventListener: () => {}, addEventListener: () => {},
setAttribute: () => {},
getAttribute: name => ({ getAttribute: name => ({
'data-pixel-ratio': '1' 'data-pixel-ratio': '1'
}[name]), }[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; return result;