11 lines
267 B
JavaScript
11 lines
267 B
JavaScript
|
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();
|
||
|
});
|