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()
|
|
})
|
|
})
|