Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 committed Feb 10, 2025
1 parent c0a1013 commit df61ae2
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions packages/react/src/SegmentedControl/SegmentedControl.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,27 @@ import {act} from 'react-test-renderer'
import {viewportRanges} from '../hooks/useResponsiveValue'

const segmentData = [
{label: 'Preview', description: 'This preview does blah.', id: 'preview', iconLabel: 'EyeIcon', icon: () => <EyeIcon aria-label="EyeIcon" />},
{label: 'Raw', description: 'This shows the raw content.', id: 'raw', iconLabel: 'FileCodeIcon', icon: () => <FileCodeIcon aria-label="FileCodeIcon" />},
{label: 'Blame', description: 'This shows the blame.', id: 'blame', iconLabel: 'PeopleIcon', icon: () => <PeopleIcon aria-label="PeopleIcon" />},
{
label: 'Preview',
description: 'This preview does blah.',
id: 'preview',
iconLabel: 'EyeIcon',
icon: () => <EyeIcon aria-label="EyeIcon" />,
},
{
label: 'Raw',
description: 'This shows the raw content.',
id: 'raw',
iconLabel: 'FileCodeIcon',
icon: () => <FileCodeIcon aria-label="FileCodeIcon" />,
},
{
label: 'Blame',
description: 'This shows the blame.',
id: 'blame',
iconLabel: 'PeopleIcon',
icon: () => <PeopleIcon aria-label="PeopleIcon" />,
},
]

let matchMedia: MatchMediaMock
Expand Down Expand Up @@ -165,7 +183,7 @@ describe('SegmentedControl', () => {
})

it('renders icon button with tooltip as label', () => {
const {getByRole, getByText, getAllByRole} = render(
const {getByRole, getByText} = render(
<SegmentedControl aria-label="File view">
{segmentData.map(({label, icon}) => (
<SegmentedControl.IconButton icon={icon} aria-label={label} key={label} />
Expand Down

0 comments on commit df61ae2

Please sign in to comment.