import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import Input from './input';

describe('Input component test', () => {
  
  it('renders component correctly', () => {
    const tree = ReactTestRenderer
      .create(
        <Input name='testInputName' value={123} onChange={() => null}/>
      )
      .toJSON();
    expect(tree).toMatchSnapshot();
  });

});
