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:
parent
b7c938a963
commit
82bb41535b
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ const runExamples = (matter) => {
|
||||||
let snapshots = {};
|
let snapshots = {};
|
||||||
matter = stubBrowserFeatures(matter);
|
matter = stubBrowserFeatures(matter);
|
||||||
global.Matter = matter;
|
global.Matter = matter;
|
||||||
matter.Plugin.register(require('matter-wrap'));
|
matter.use(require('matter-wrap'));
|
||||||
|
|
||||||
const Example = require('../examples/index');
|
const Example = require('../examples/index');
|
||||||
const examples = Object.keys(Example).filter(key => !excludeExamples.includes(key));
|
const examples = Object.keys(Example).filter(key => !excludeExamples.includes(key));
|
||||||
|
|
|
@ -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 {
|
return {
|
||||||
message: () => `Expected positions and velocities to match between builds.
|
message: () => `Expected positions and velocities to match between builds.
|
||||||
|
|
Loading…
Reference in a new issue