@devseed-ui/form
Version:
devseed UI Kit Form
22 lines (18 loc) • 514 B
JavaScript
import React from 'react';
import { cleanup } from '@testing-library/react';
import { renderWithTheme } from '../../../../test/_setup-theme-provider';
import FormInput from '.';
afterAll(cleanup);
describe('<FormInput />', () => {
it('renders <FormInput />', () => {
const wrapper = renderWithTheme(
<FormInput
type='text'
size='large'
id='input-text-a'
placeholder='This is a text input'
/>
);
expect(wrapper.asFragment()).toMatchSnapshot();
});
});