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:
parent
8a67787735
commit
acb99b6f87
2 changed files with 2 additions and 1 deletions
|
@ -185,6 +185,7 @@ const prepareEnvironment = options => {
|
|||
height: 600,
|
||||
style: {},
|
||||
addEventListener: () => {},
|
||||
setAttribute: () => {},
|
||||
getAttribute: name => ({
|
||||
'data-pixel-ratio': '1'
|
||||
}[name]),
|
||||
|
|
|
@ -238,7 +238,7 @@ const extrinsicSimilarity = (currentCaptures, referenceCaptures, key='extrinsic'
|
|||
}
|
||||
}
|
||||
|
||||
result[name] = 1 - (totalSimilarity / totalCount);
|
||||
result[name] = 1 - (totalSimilarity / (totalCount || 1));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue