Skip to content

Commit

Permalink
fixup! feat(upgradeV1Buttons): transform size prop
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartSquared committed Dec 19, 2024
1 parent e35370a commit 75ed8ab
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ describe('transformV1Buttons()', () => {
const outputAst = parseJsx('<Button size="large">Pancakes</Button>')
expect(transformInput(inputAst)).toEqual(printAst(outputAst))
})

it('does not change a non-string value', () => {
const inputAst = parseJsx('<Button label="Pancakes" size={size} />')
const outputAst = parseJsx('<Button size={size}>Pancakes</Button>')
expect(transformInput(inputAst)).toEqual(printAst(outputAst))
})
})
})
})

0 comments on commit 75ed8ab

Please sign in to comment.