import { render, screen } from '@tests/utils'; import HeadingButton from './heading-button'; describe('HeadingButton', () => { it('renders a button to collapse.', () => { render( null} /> ); expect( screen.getByRole('button', { name: 'Collapse The accordion title' }) ).toBeInTheDocument(); }); it('renders a button to expand.', () => { render( null} /> ); expect( screen.getByRole('button', { name: 'Expand The accordion title' }) ).toBeInTheDocument(); }); });