import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import ResizableHandle from '../../../../../src/dashboard/components/resizable/ResizableHandle'; describe('ResizableHandle', () => { it('should render a right resize handle', () => { const wrapper = shallow(); expect(wrapper.find('.resize-handle.resize-handle--right')).to.have.length( 1, ); }); it('should render a bottom resize handle', () => { const wrapper = shallow(); expect(wrapper.find('.resize-handle.resize-handle--bottom')).to.have.length( 1, ); }); it('should render a bottomRight resize handle', () => { const wrapper = shallow(); expect( wrapper.find('.resize-handle.resize-handle--bottom-right'), ).to.have.length(1); }); });