import React from 'react';
import { shallow } from 'enzyme';
import Message from 'components/Message';
describe('Message', () => {
test('rendering', () => {
const component = shallow(
Message content
);
expect(component).toMatchSnapshot();
});
test('rendering with icon', () => {
const Icon = () => 'Sample icon SVG';
const component = shallow(
Message content
);
expect(component).toMatchSnapshot();
});
test('rendering with type', () => {
const component = shallow(
Message content
);
expect(component).toMatchSnapshot();
});
test('rendering with a close button', () => {
const component = shallow(
Message content
);
expect(component).toMatchSnapshot();
});
});