1
1
mirror of https://github.com/theoludwig/p61-project.git synced 2024-07-17 07:00:12 +02:00
p61-project/presentation/react/components/__tests__/ExternalLink.test.tsx

17 lines
403 B
TypeScript
Raw Normal View History

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