mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-23 09:26:51 -05:00
fix tests
This commit is contained in:
parent
e8c899aeec
commit
c26684e471
2 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,7 @@ var test = function(status) {
|
|||
_demo.engine.render = {};
|
||||
_demo.engine.render.options = {};
|
||||
_demo.runner = runner;
|
||||
_demo.render = { options: {} };
|
||||
_demo.mouseConstraint = Matter.MouseConstraint.create(engine);
|
||||
|
||||
Matter.Demo.reset(_demo);
|
||||
|
|
|
@ -50,6 +50,7 @@ var test = function() {
|
|||
_demo.engine.render = {};
|
||||
_demo.engine.render.options = {};
|
||||
_demo.runner = runner;
|
||||
_demo.render = { options: {} };
|
||||
|
||||
if (!(demo in Matter.Example)) {
|
||||
throw '\'' + demo + '\' is not defined in Matter.Example';
|
||||
|
|
Loading…
Reference in a new issue