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