Skip to content

Commit

Permalink
fix(snapshot tests): avoid repeated keys
Browse files Browse the repository at this point in the history
  • Loading branch information
chohner committed Nov 16, 2023
1 parent 5a9713d commit 23da86f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions stories/Footer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export const Example: Story = {
openInNewTab: true,
text: "DigitalService",
},
{ url: "/", text: "Lorem ipsum 1" },
{ url: "/", text: "Lorem ipsum 2" },
{ url: "/", text: "Lorem ipsum 3" },
{ url: "/", text: "Lorem ipsum 4" },
{ url: "/url1", text: "Lorem ipsum 1" },
{ url: "/url2", text: "Lorem ipsum 2" },
{ url: "/url3", text: "Lorem ipsum 3" },
{ url: "/url4", text: "Lorem ipsum 4" },
],
},
};
8 changes: 4 additions & 4 deletions tests/unit/components/__snapshots__/storybook.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ exports[`Storyshots Page/Footer Example 1`] = `
>
<a
className="text-link increase-tap-area"
href="/"
href="/url1"
>
Lorem ipsum 1
</a>
Expand All @@ -506,7 +506,7 @@ exports[`Storyshots Page/Footer Example 1`] = `
>
<a
className="text-link increase-tap-area"
href="/"
href="/url2"
>
Lorem ipsum 2
</a>
Expand All @@ -520,7 +520,7 @@ exports[`Storyshots Page/Footer Example 1`] = `
>
<a
className="text-link increase-tap-area"
href="/"
href="/url3"
>
Lorem ipsum 3
</a>
Expand All @@ -530,7 +530,7 @@ exports[`Storyshots Page/Footer Example 1`] = `
>
<a
className="text-link increase-tap-area"
href="/"
href="/url4"
>
Lorem ipsum 4
</a>
Expand Down

0 comments on commit 23da86f

Please sign in to comment.