UNPKG

@shopware-ag/dive

Version:

Shopware Spatial Framework

25 lines (21 loc) 652 B
import { MeshStandardMaterial } from 'three'; import { DIVEFloor } from '../Floor'; describe('dive/primitive/floor/DIVEFloor', () => { it('should instantiate', () => { const floor = new DIVEFloor(); expect(floor).toBeDefined(); }); it('should set visibility', () => { const floor = new DIVEFloor(); expect(() => { floor.SetVisibility(false); }).not.toThrow(); expect(floor.visible).toBe(false); }); it('should set color', () => { const floor = new DIVEFloor(); expect(() => { floor.SetColor('#ff00ff'); }).not.toThrow(); }); });