This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
p61-project/presentation/react/components/__tests__/ButtonCustom.test.tsx

13 lines
337 B
TypeScript

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