import React from 'react';
import renderer from 'react-test-renderer'; // eslint-disable-line import/no-extraneous-dependencies

import TextArea from './index';

test('TextArea renders correctly', () => {
  const tree = renderer.create(
    <TextArea label="Details" mandatory />
  ).toJSON();
  expect(tree).toMatchSnapshot();
});
