1
1
mirror of https://github.com/theoludwig/p61-project.git synced 2024-07-17 07:00:12 +02:00
p61-project/components/__tests__/MonoText.test.tsx

11 lines
282 B
TypeScript

import renderer from "react-test-renderer"
import { MonoText } from "@/components/MonoText"
describe("<MonoText />", () => {
it("renders correctly", () => {
const tree = renderer.create(<MonoText>Awesome text!</MonoText>).toJSON()
expect(tree).toMatchSnapshot()
})
})