import { render } from '@testing-library/react'; import 'jest-styled-components'; import React from 'react'; import { TextCrop } from '../TextCrop'; import { Font } from '../fonts'; describe('', () => { it('default ', () => { const { asFragment } = render(Text); expect(asFragment()).toMatchSnapshot(); }); it('line height ', () => { const { asFragment } = render( Text ); expect(asFragment()).toMatchSnapshot(); }); it('top adjustment', () => { const { asFragment } = render( Text ); expect(asFragment()).toMatchSnapshot(); }); it('bottom adjustment', () => { const { asFragment } = render( Text ); expect(asFragment()).toMatchSnapshot(); }); it('missing font', () => { const { asFragment } = render( Text ); expect(asFragment()).toMatchSnapshot(); }); });