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:
parent
8a67787735
commit
acb99b6f87
2 changed files with 2 additions and 1 deletions
|
@ -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]),
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue