aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/forms/form/form.test.tsx
blob: 90cac5f3dfb029081908f8af640ca89d28c6440e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { Form } from './form';

const doNothing = () => {
  // Do nothing
};

describe('Form', () => {
  it('renders a form', () => {
    render(
      <Form aria-label="A form name" onSubmit={doNothing}>
        Fields
      </Form>
    );
    expect(rtlScreen.getByRole('form')).toBeInTheDocument();
  });
});