UNPKG

whs

Version:

Super-fast 3D framework for Web Applications & Games. Based on Three.js

21 lines (15 loc) 364 B
import * as WHS from '../index'; const app = new WHS.App(); const loop = new WHS.Loop(() => {}, false); app.start(); test('.start()', () => { loop.start(app); expect(loop.enabled).toBeTruthy(); }); test('.stop()', () => { loop.stop(app); expect(loop.enabled).toBeFalsy(); }); test('.execute()', (done) => { new WHS.Loop(() => done()).execute(); });