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