import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import CalendarListItem from 'app/modules/calendar/components/calendarListItem';
import { createCalendarEvents } from 'app/testUtils/mocks/calendar.mock';

describe('CalendarListItem component tests', () => {
  const events = createCalendarEvents();

  it('CalendarEvent renders correctly with parameters', () => {
    const tree = ReactTestRenderer
      .create(<CalendarListItem event={events[0]} />)
      .toJSON();
    expect(tree).toMatchSnapshot();
  });
});
