// @flow
import React from 'react';
import { renderSnapshot } from '../../../../utils/tests';
import { PlaceholderCard } from './placeholder.card';

describe('PlaceholderCard', () => {
  describe('snapshot', () => {
    it('matches the previous snapshot', () => {
      const snap = renderSnapshot(<PlaceholderCard />);
      expect(snap).toMatchSnapshot();
    });

    describe('with minHeight prop', () => {
      it('matches the previous snapshot', () => {
        const snap = renderSnapshot(<PlaceholderCard minHeight="700px" />);
        expect(snap).toMatchSnapshot();
      });
    });
  });
});
