UNPKG

whs

Version:

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

17 lines (13 loc) 374 B
import {Box} from '../../index'; describe('Box', () => { test('constructs non buffered BoxGeometry', () => { const box = new Box(); expect(box.geometry.type).toEqual('BoxGeometry'); }); test('constructs buffered BoxGeometry', () => { const box = new Box({ buffer: true }); expect(box.geometry.type).toEqual('BoxBufferGeometry'); }); });