GT2/Ejectable/components/__tests__/StyledText-test.js

11 lines
269 B
JavaScript
Raw Permalink Normal View History

2021-08-16 07:50:50 +00:00
import * as React from 'react';
import renderer from 'react-test-renderer';
import { MonoText } from '../StyledText';
it(`renders correctly`, () => {
const tree = renderer.create(<MonoText>Snapshot test!</MonoText>).toJSON();
expect(tree).toMatchSnapshot();
});