Skip to content

Commit

Permalink
fixed plugins in compare
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Sep 30, 2019
1 parent b7c938a commit 82bb415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/Examples.spec.js
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion test/TestTools.js
Expand Up @@ -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.
Expand Down

0 comments on commit 82bb415

Please sign in to comment.