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/components/__tests__/ExternalLink.test.tsx

17 lines
384 B
TypeScript
Raw Normal View History

2024-02-16 22:51:50 +01:00
import renderer from "react-test-renderer"
import { ExternalLink } from "@/components/ExternalLink"
describe("<ExternalLink />", () => {
it("renders correctly", () => {
const tree = renderer
.create(
<ExternalLink href="https://www.unistra.fr/">
Awesome Link!
</ExternalLink>,
)
.toJSON()
expect(tree).toMatchSnapshot()
})
})