/**
* Readme component
*/
import React from 'react';
import { shallow } from 'enzyme';
import Readme from '../../../../src/webui/src/components/Readme/index';
console.error = jest.fn();
describe(' component', () => {
it('should give error for the required fields', () => {
shallow();
expect(console.error).toBeCalled();
});
it('should dangerously set html', () => {
const props = {
readMe: '
This is a test string
'
};
const wrapper = shallow();
expect(wrapper.html()).toEqual(
'This is a test string
'
);
expect(wrapper.html()).toMatchSnapshot();
});
});