whs-cube-spheres
Version:
This plugin has a container with multiple spheres.
17 lines (13 loc) • 390 B
JavaScript
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');
});
});