aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/forms/flipping-label/flipping-label.test.tsx
blob: 71ea2ba5a80b292076edca105e7e9ffe05bc2258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { describe, expect, it } from '@jest/globals';
import { render, screen } from '../../../../../tests/utils';
import { FlippingLabel } from './flipping-label';

describe('FlippingLabel', () => {
  it('renders a label', () => {
    const ariaLabel = 'vero quo inventore';
    render(
      <FlippingLabel aria-label={ariaLabel} isActive={false}>
        <>Test</>
      </FlippingLabel>
    );
    expect(screen.getByLabelText(ariaLabel)).toBeInTheDocument();
  });
});