From d7e22288972dbfa6c0b486207f22ec7741f0c322 Mon Sep 17 00:00:00 2001 From: Julian Roeland Date: Fri, 28 Jun 2024 17:03:10 +0200 Subject: [PATCH] :poop: - fix: fixed radio group component story --- src/components/form/radio/radiogroup.stories.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/form/radio/radiogroup.stories.tsx b/src/components/form/radio/radiogroup.stories.tsx index a1fe9544..4469ded7 100644 --- a/src/components/form/radio/radiogroup.stories.tsx +++ b/src/components/form/radio/radiogroup.stories.tsx @@ -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) @@ -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"); }, };