11 lines
282 B
TypeScript
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()
|
||
|
})
|
||
|
})
|