Skip to content

Commit

Permalink
chore: Update Accordion component and package version
Browse files Browse the repository at this point in the history
  • Loading branch information
agjs committed May 11, 2024
1 parent 3b7dd20 commit 8907ff9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Components/Accordion/Accordion.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("Accordion component", () => {
const { asFragment } = render(
<Accordion
sections={mockSections}
setSections={vi.fn()}
onSorted={vi.fn()}
setExpanded={() => null}
expanded={[1]}
onSectionItemClick={vi.fn()}
Expand All @@ -42,7 +42,7 @@ describe("Accordion component", () => {
render(
<Accordion
sections={mockSections}
setSections={vi.fn()}
onSorted={vi.fn()}
setExpanded={setExpanded}
expanded={[1]}
onSectionItemClick={vi.fn()}
Expand All @@ -61,7 +61,7 @@ describe("Accordion component", () => {
render(
<Accordion
sections={mockSections}
setSections={vi.fn()}
onSorted={vi.fn()}
setExpanded={setExpanded}
expanded={[mockSections[0].id]}
onSectionItemClick={vi.fn()}
Expand All @@ -77,7 +77,7 @@ describe("Accordion component", () => {
render(
<Accordion
sections={mockSections}
setSections={vi.fn()}
onSorted={vi.fn()}
setExpanded={vi.fn()}
onSectionItemClick={onSectionItemClick}
expanded={[1]}
Expand All @@ -92,7 +92,7 @@ describe("Accordion component", () => {
render(
<Accordion
sections={mockSections}
setSections={vi.fn()}
onSorted={vi.fn()}
className='custom-class'
sectionTitleClassName='custom-title-class'
setExpanded={vi.fn()}
Expand All @@ -110,7 +110,7 @@ describe("Accordion component", () => {
render(
<Accordion
sections={mockSections}
setSections={vi.fn()}
onSorted={vi.fn()}
className='custom-class'
sectionTitleClassName='custom-title-class'
setExpanded={vi.fn()}
Expand Down

0 comments on commit 8907ff9

Please sign in to comment.