From 75ed8ab27514952b57c0812901909956c0614543 Mon Sep 17 00:00:00 2001 From: Cassandra Tam Date: Thu, 19 Dec 2024 16:09:26 +1100 Subject: [PATCH] fixup! feat(upgradeV1Buttons): transform size prop --- .../codemods/upgradeV1Buttons/transformV1Buttons.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/components/codemods/upgradeV1Buttons/transformV1Buttons.spec.ts b/packages/components/codemods/upgradeV1Buttons/transformV1Buttons.spec.ts index 54fabe07d92..39a4ced8dc5 100644 --- a/packages/components/codemods/upgradeV1Buttons/transformV1Buttons.spec.ts +++ b/packages/components/codemods/upgradeV1Buttons/transformV1Buttons.spec.ts @@ -168,6 +168,12 @@ describe('transformV1Buttons()', () => { const outputAst = parseJsx('') expect(transformInput(inputAst)).toEqual(printAst(outputAst)) }) + + it('does not change a non-string value', () => { + const inputAst = parseJsx('') + expect(transformInput(inputAst)).toEqual(printAst(outputAst)) + }) }) }) })