import React from 'react';

import Alert, { AlertProps } from './index';

const data: AlertProps = {
  title: 'Title',
  text: <p>Subtitle</p>,
  isOpen: true,
};

describe('Alert', () => {
  const defaultElement = <Alert {...data} />;
  let wrapper;

  beforeEach(() => {
    wrapper = shallow(defaultElement);
  });

  it('should render correctly', () => {
    expect(wrapper).toMatchSnapshot();
  });
});
