import InlineLinkLists from './InlineLinkLists'; import { render, screen } from '@testing-library/react'; describe('InlineLinkLists', function () { it('renders lists of links', () => { const { container } = render(); expect(container).toMatchSnapshot(); }); it('includes a lang attribute on language links', () => { render(); const links = screen.getAllByRole('link'); let matching = 0; links.forEach((l) => { if (l.lang) matching++; }); expect(matching > 0).toBeTruthy(); }); it('renders lists of links with absolute URLs', () => { const { container } = render(); expect(container).toMatchSnapshot(); }); });