UNPKG

whs-cube-spheres

Version:

This plugin has a container with multiple spheres.

21 lines (15 loc) 384 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(); });