10 lines
269 B
JavaScript
10 lines
269 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();
|
|
});
|