whs.js/test/node/lib.spec.js
sasha240100 2ab46aba74 Fix modular features
Former-commit-id: 2fa4a39ad53096ea38565fcbdb0e77d256a13308
2016-09-03 15:49:14 +03:00

25 lines
536 B
JavaScript

const jsdom = require("jsdom").jsdom;
const document = jsdom("hello world");
const window = document.defaultView;
const WHS = require('../../lib/index');
const path_assets = '/base/test/_assets/';
describe('Test Lib folder', () => {
const world = new WHS.World({
autoresize: false,
container: document.body,
width: 100,
height: 100,
init: {renderer: false}
}, window);
it('Physics works', () => {
const box = new WHS.Box();
box.addTo(world);
world.getScene().simulate(undefined, 1);
});
});