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