Lines Matching refs:text
36 it('returns normal text from h1 heading', () => {
38 type: 'text',
39 text: 'Hello',
43 it('returns normal text from h2 heading', () => {
45 type: 'text',
46 text: 'Hello World',
50 it('returns normal text from h3 heading with platform specification', () => {
52 type: 'text',
53 text: 'Cool stuff (Android only)',
57 it('returns code text from h4 heading with function name', () => {
60 text: 'getCoolStuffAsync',
64 it('returns code text from h5 heading with function name and args', () => {
67 text: 'getTransformAsync',
71 it('returns code text from h6 heading with function name, args, and return type', () => {
76 text: 'getTransformAsync',
81 function makeHeading(Tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', text = 'Hello World') {
82 render(<Tag data-testid="heading">{text}</Tag>);