/** * Module component */ import React from 'react'; import { shallow } from 'enzyme'; import Module from '../../../../../src/webui/components/PackageSidebar/Module/index'; console.error = jest.fn(); describe(' : ', () => { it('should error for required props', () => { shallow(); expect(console.error).toBeCalled(); }); it('should load module component', () => { const props = { title: 'Test title', description: 'Test description', className: 'module-component' }; const wrapper = shallow(

test children

); expect(wrapper.html()).toMatchSnapshot(); }); });