Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Nov 4, 2016
1 parent 9856e3c commit 54e7d9c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/attractorsPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@

Matter.Plugin.register(MatterAttractors);

window.MatterAttractors = MatterAttractors;
if (typeof window !== 'undefined') {
window.MatterAttractors = MatterAttractors;
}

})();
4 changes: 3 additions & 1 deletion examples/gravityPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@

Matter.Plugin.register(MatterGravity);

window.MatterGravity = MatterGravity;
if (typeof window !== 'undefined') {
window.MatterGravity = MatterGravity;
}

})();
4 changes: 3 additions & 1 deletion examples/wrapPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@

Matter.Plugin.register(MatterWrap);

window.MatterWrap = MatterWrap;
if (typeof window !== 'undefined') {
window.MatterWrap = MatterWrap;
}

})();
3 changes: 2 additions & 1 deletion test/node/TestDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ var getDemoNames = function() {
skip = [
'terrain', 'svg', 'concave',
'slingshot', 'views', 'raycasting',
'events', 'collisionFiltering', 'sleeping'
'events', 'collisionFiltering', 'sleeping',
'attractors'
];

$('#demo-select option', fs.readFileSync('demo/index.html').toString())
Expand Down

0 comments on commit 54e7d9c

Please sign in to comment.