Skip to content

Commit

Permalink
feat(@clayui/card): LPD-1261 Update tests adding name in radioProps
Browse files Browse the repository at this point in the history
  • Loading branch information
veroglez committed May 31, 2024
1 parent b07d58a commit bd32f54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/clay-card/src/__tests__/__snapshots__/index.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,7 @@ exports[`ClayCardWithHorizontal renders with radio button 1`] = `
<input
class="custom-control-input"
disabled=""
name="cards"
role="radio"
type="radio"
value="radio1"
Expand Down Expand Up @@ -2917,6 +2918,7 @@ exports[`ClayCardWithInfo renders with radio button 1`] = `
<label>
<input
class="custom-control-input"
name="cards"
role="radio"
type="radio"
value="radio1"
Expand Down Expand Up @@ -3461,6 +3463,7 @@ exports[`ClayCardWithUser renders with radio button 1`] = `
<label>
<input
class="custom-control-input"
name="cards"
role="radio"
type="radio"
value="radio1"
Expand Down
6 changes: 3 additions & 3 deletions packages/clay-card/src/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ describe('ClayCardWithUser', () => {
href="#"
name="Foo Bar"
onSelectChange={jest.fn()}
radioProps={{value: 'radio1'}}
radioProps={{name: 'cards', value: 'radio1'}}
selectableType="radio"
spritemap="/path/to/some/resource.svg"
/>
Expand Down Expand Up @@ -835,7 +835,7 @@ describe('ClayCardWithHorizontal', () => {
disabled
href="#"
onSelectChange={jest.fn()}
radioProps={{value: 'radio1'}}
radioProps={{name: 'cards', value: 'radio1'}}
selectableType="radio"
selected={false}
spritemap="/path/to/some/resource.svg"
Expand Down Expand Up @@ -1146,7 +1146,7 @@ describe('ClayCardWithInfo', () => {
<ClayCardWithInfo
href="#"
onSelectChange={jest.fn()}
radioProps={{value: 'radio1'}}
radioProps={{name: 'cards', value: 'radio1'}}
selectableType="radio"
selected={false}
spritemap="/path/to/some/resource.svg"
Expand Down

0 comments on commit bd32f54

Please sign in to comment.