shellphone.app/app/components/__tests__/StyledText-test.js

11 lines
267 B
JavaScript
Raw Normal View History

2021-06-01 21:13:51 +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();
});