blob: 26fe6c3b4b138d0846b74ec1e0743b5f0f7bb12c (
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 { Logo } from './logo';
describe('Logo', () => {
it('renders a logo with a title', () => {
const heading = 'enim quaerat veritatis';
render(<Logo heading={heading} />);
expect(rtlScreen.getByRole('img')).toHaveAccessibleName(heading);
});
});
|