import 'react-native'; import { render } from '@testing-library/react-native'; import * as React from 'react'; import { B, BlockQuote, BR, Pre, Code, Del, EM, I, Mark, P, Q, S, Span, Strong, Time, } from '../Text'; it('renders P', () => { const { toJSON } = render(

demo

); expect(toJSON()).toMatchSnapshot(); }); it('renders B', () => { const { toJSON } = render(demo); expect(toJSON()).toMatchSnapshot(); }); it('renders Span', () => { const { toJSON } = render(demo); expect(toJSON()).toMatchSnapshot(); }); it('renders Strong', () => { const { toJSON } = render(demo); expect(toJSON()).toMatchSnapshot(); }); it('renders Del', () => { const { toJSON } = render(demo); expect(toJSON()).toMatchSnapshot(); }); it('renders S', () => { const { toJSON } = render(demo); expect(toJSON()).toMatchSnapshot(); }); it('renders I', () => { const { toJSON } = render(demo); expect(toJSON()).toMatchSnapshot(); }); it('renders EM', () => { const { toJSON } = render(demo); expect(toJSON()).toMatchSnapshot(); }); it('renders BR', () => { const { toJSON } = render(
); expect(toJSON()).toMatchSnapshot(); }); it('renders Code', () => { const { toJSON } = render(); expect(toJSON()).toMatchSnapshot(); }); it('renders Q', () => { const { toJSON } = render(demo); expect(toJSON()).toMatchSnapshot(); }); it('renders BlockQuote', () => { const { toJSON } = render(
); expect(toJSON()).toMatchSnapshot(); }); it('renders Mark', () => { const { toJSON } = render(); expect(toJSON()).toMatchSnapshot(); }); it('renders Time', () => { const { toJSON } = render(); expect(toJSON()).toMatchSnapshot(); }); it('renders Pre', () => { const { toJSON } = render(
{`
    body {
      color: red;
    }
  `}
); expect(toJSON()).toMatchSnapshot(); });