import React from 'react';
import { render } from '@testing-library/react';
import Icon from '../../Icon/Icon';
import { faCoffee } from '@fortawesome/free-solid-svg-icons';
import Item from './Item';
describe(' ', () => {
it('renders the component with default props', () => {
const { container } = render(- I am a list item
);
expect(container.firstChild).toMatchSnapshot();
});
it('renders the component with icon', () => {
const { container } = render(
}>
Get some coffee
,
);
expect(container.firstChild).toMatchSnapshot();
});
});