mirror of
https://github.com/theoludwig/p61-project.git
synced 2024-07-17 07:00:12 +02:00
11 lines
301 B
TypeScript
11 lines
301 B
TypeScript
import renderer from "react-test-renderer"
|
|
|
|
import { MonoText } from "@/presentation/react/components/MonoText"
|
|
|
|
describe("<MonoText />", () => {
|
|
it("renders correctly", () => {
|
|
const tree = renderer.create(<MonoText>Awesome text!</MonoText>).toJSON()
|
|
expect(tree).toMatchSnapshot()
|
|
})
|
|
})
|