aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/overlay/overlay.test.tsx
blob: 1d31e9c4eac82d3d1349338205b680a93e810e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { describe, expect, it } from '@jest/globals';
import { render, screen as screenTL } from '@testing-library/react';
import { Overlay } from './overlay';

describe('overlay', () => {
  it('renders its children in front of an overlay', () => {
    const body = 'perferendis voluptatibus ut';

    render(<Overlay>{body}</Overlay>);

    expect(screenTL.getByText(body)).toBeInTheDocument();
  });
});