security/codeql-dependabot-gitleaks
| 1 | import * as React from "react" |
| 2 | import { cleanup, render, screen } from "@testing-library/react" |
| 3 | |
| 4 | import CodePullRequest from "../code-pull-request" |
| 5 | |
| 6 | describe("CodePullRequest", () => { |
| 7 | it("should render the icon without errors", async () => { |
| 8 | render(<CodePullRequest data-testid="icon" />) |
| 9 | |
| 10 | |
| 11 | const svgElement = screen.getByTestId("icon") |
| 12 | |
| 13 | expect(svgElement).toBeInTheDocument() |
| 14 | |
| 15 | cleanup() |
| 16 | }) |
| 17 | }) |