0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-12 16:08:50 -05:00

fixed plugins in compare

This commit is contained in:
liabru 2019-10-01 00:03:09 +01:00
parent b7c938a963
commit 82bb41535b
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ const runExamples = (matter) => {
let snapshots = {};
matter = stubBrowserFeatures(matter);
global.Matter = matter;
matter.Plugin.register(require('matter-wrap'));
matter.use(require('matter-wrap'));
const Example = require('../examples/index');
const examples = Object.keys(Example).filter(key => !excludeExamples.includes(key));

View file

@ -182,7 +182,7 @@ const toMatchExtrinsics = {
}
});
const pass = equal.length === similaritys.length && changed.length === 0 && borderline.length === 0;
const pass = equal.length === entries.length && changed.length === 0 && borderline.length === 0;
return {
message: () => `Expected positions and velocities to match between builds.