import React from 'react';
import { render } from '~/testUtils/helpers';
import { Grid } from '..';

describe('<Grid/>', () => {
  it('renders without crashing', () => {
    const { container } = render(<Grid>This is grid</Grid>);
    expect(container).toBeDefined();
  });

  it('matches a snapshot', () => {
    const { container } = render(
      <Grid gridTemplateRows="6fr 6fr" gridRowGap="777px">
        Text element content
      </Grid>
    );

    expect(container.firstChild).toMatchSnapshot();
  });
});
