vizorvr / patches

Patches is a visual programming editor for building WebVR and WebGL experiences.
http://patches.vizor.io
MIT License
200 stars 44 forks source link

mock window.dispatchEvent to fix tests #2070

Closed gmarinov closed 6 years ago

gmarinov commented 6 years ago
bash-3.2$ mocha browser/test/integration/init-revolver.js

  Initialisation together with if statements
reset 1 1 1
reset 1 1 1
THREE.Object3D.add: object not an instance of THREE.Object3D. undefined
THREE.Object3D.add: object not an instance of THREE.Object3D. undefined
    ✓ inits the correct number (269ms)

  1 passing (443ms)