Moxitech-Websocket-Do/frontend/components/__tests__/ThemedText-test.tsx

11 lines
275 B
TypeScript
Raw Permalink Normal View History

2024-09-01 02:36:40 +07:00
import * as React from 'react';
import renderer from 'react-test-renderer';
import { ThemedText } from '../ThemedText';
it(`renders correctly`, () => {
const tree = renderer.create(<ThemedText>Snapshot test!</ThemedText>).toJSON();
expect(tree).toMatchSnapshot();
});