diff options
Diffstat (limited to 'src/components/molecules/buttons/heading-button.test.tsx')
| -rw-r--r-- | src/components/molecules/buttons/heading-button.test.tsx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/components/molecules/buttons/heading-button.test.tsx b/src/components/molecules/buttons/heading-button.test.tsx deleted file mode 100644 index 4d3d91e..0000000 --- a/src/components/molecules/buttons/heading-button.test.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import { describe, expect, it } from '@jest/globals'; -import { render, screen } from '../../../../tests/utils'; -import { HeadingButton } from './heading-button'; - -describe('HeadingButton', () => { - it('renders a button to collapse.', () => { - render( - <HeadingButton - level={2} - title="The accordion title" - expanded={true} - setExpanded={() => null} - /> - ); - expect( - screen.getByRole('button', { name: 'Collapse The accordion title' }) - ).toBeInTheDocument(); - }); - - it('renders a button to expand.', () => { - render( - <HeadingButton - level={2} - title="The accordion title" - expanded={false} - setExpanded={() => null} - /> - ); - expect( - screen.getByRole('button', { name: 'Expand The accordion title' }) - ).toBeInTheDocument(); - }); -}); |
