import React from 'react';

import Text from './index';

const data = {
  title: 'title',
  text: 'text',
};

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

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

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