diff --git a/packages/react-native/Libraries/Text/__tests__/Text-itest.js b/packages/react-native/Libraries/Text/__tests__/Text-itest.js index fd000d156f46..b7c10c8b01ea 100644 --- a/packages/react-native/Libraries/Text/__tests__/Text-itest.js +++ b/packages/react-native/Libraries/Text/__tests__/Text-itest.js @@ -47,6 +47,34 @@ describe('', () => { }); }); + describe('adjustsFontSizeToFit', () => { + it(`can be set to "true"`, () => { + const root = Fantom.createRoot(); + + Fantom.runTask(() => { + root.render({TEST_TEXT}); + }); + + expect( + root.getRenderedOutput({props: ['adjustsFontSizeToFit']}).toJSX(), + ).toEqual( + {TEST_TEXT}, + ); + }); + + it(`has 'false' as default`, () => { + const root = Fantom.createRoot(); + + Fantom.runTask(() => { + root.render({TEST_TEXT}); + }); + + expect( + root.getRenderedOutput({props: ['adjustsFontSizeToFit']}).toJSX(), + ).toEqual({TEST_TEXT}); + }); + }); + describe('allowFontScaling', () => { ([true, false] as const).forEach(propVal => { it(`can be set to "${propVal.toString()}"`, () => {