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