/** * Readme component */ import React from 'react'; import { shallow, mount } from 'enzyme'; import Readme from '../../../../src/webui/components/Readme/index'; describe(' component', () => { it('should load the component in default state', () => { const wrapper = mount(); expect(wrapper.html()).toMatchSnapshot(); }); it('should dangerously set html', () => { const wrapper = shallow(); expect(wrapper.html()).toEqual( '

This is a test string

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