diff --git a/test/Examples.spec.js b/test/Examples.spec.js index 1cef0fe5..8ecbe347 100644 --- a/test/Examples.spec.js +++ b/test/Examples.spec.js @@ -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)); diff --git a/test/TestTools.js b/test/TestTools.js index e19acec5..49110b6d 100644 --- a/test/TestTools.js +++ b/test/TestTools.js @@ -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.