diff --git a/test/browser/TestDemo.js b/test/browser/TestDemo.js index 31a968a2..5f23081e 100644 --- a/test/browser/TestDemo.js +++ b/test/browser/TestDemo.js @@ -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); diff --git a/test/node/TestDemo.js b/test/node/TestDemo.js index 965988ed..59af3103 100644 --- a/test/node/TestDemo.js +++ b/test/node/TestDemo.js @@ -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';