blob: 15c6e6d3c6135b3cc9c51c7caccc830fe3a4d803 (
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 rtlScreen } from '@testing-library/react';
import { Footer } from './footer';
describe('Footer', () => {
it('renders the contents of a footer', () => {
const children = 'The footer content.';
render(<Footer>{children}</Footer>);
expect(rtlScreen.getByRole('contentinfo')).toHaveTextContent(children);
});
});
|