From c26684e4716e4e1d84cc6c1558a8cb8e57b9b175 Mon Sep 17 00:00:00 2001 From: liabru Date: Thu, 28 Apr 2016 21:28:18 +0100 Subject: [PATCH] fix tests --- test/browser/TestDemo.js | 1 + test/node/TestDemo.js | 1 + 2 files changed, 2 insertions(+) diff --git a/test/browser/TestDemo.js b/test/browser/TestDemo.js index 31a968a..5f23081 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 965988e..59af310 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';