import React from 'react';
import renderer from 'react-test-renderer';
import TextInput from '../TextInput';
import noop from '../../helpers/noop';
describe('TextInput', () => {
it.each`
element
${()}
${()}
${()}
${()}
${()}
`('renders correctly', ({ element }) => {
const tree = renderer.create(element).toJSON();
expect(tree).toMatchSnapshot();
});
it.each`
element
${()}
${()}
${()}
${()}
${()}
${()}
${()}
${()}
`('renders keyboardType correctly', ({ element }) => {
const tree = renderer.create(element).toJSON();
expect(tree).toMatchSnapshot();
});
});