Skip to content

Commit

Permalink
💩 - fix: fixed radio group component story
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaohs committed Jun 28, 2024
1 parent fe4de28 commit d7e2228
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/form/radio/radiogroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export const RadioGroupComponent: Story = {
);

data = JSON.parse(pre?.textContent || "{}");
await expect(data.school_year).toEqual("Graduate");

await expect(data.school_year[0]).toEqual("Graduate");

await inputs
.filter((_, i) => i % 2 !== 0)
Expand All @@ -52,6 +53,6 @@ export const RadioGroupComponent: Story = {
);

data = JSON.parse(pre?.textContent || "{}");
await expect(data.school_year).toEqual("Senior");
await expect(data.school_year[0]).toEqual("Senior");
},
};

0 comments on commit d7e2228

Please sign in to comment.