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

11 lines
269 B
JavaScript
Raw Normal View History

2021-08-19 00:49:26 +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();
});