import React from 'react';

import AppTeaser, { AppTeaserProps } from './index';

const data: AppTeaserProps = {
  title: 'Title',
  author: 'Author',
};

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

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

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