aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/no-results.test.tsx
blob: fdd86f778d2af39008d827a53a61c4a024b60580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '../../../../tests/utils';
import { NoResults } from './no-results';

describe('NoResults', () => {
  it('renders a text with a form', () => {
    render(<NoResults />);

    expect(rtlScreen.getByText(/No results/i)).toBeInTheDocument();
    expect(rtlScreen.getByRole('searchbox')).toBeInTheDocument();
  });
});