mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 04:51:51 +00:00
17 lines
469 B
TypeScript
17 lines
469 B
TypeScript
import { render, screen } from "@testing-library/react";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
import { ApiKeyLinkCard } from "./api-key-link-card";
|
|
|
|
describe("ApiKeyLinkCard", () => {
|
|
it("links directly to the API Keys section in the user profile", () => {
|
|
// Given / When
|
|
render(<ApiKeyLinkCard />);
|
|
|
|
// Then
|
|
expect(
|
|
screen.getByRole("link", { name: /go to profile/i }),
|
|
).toHaveAttribute("href", "/profile#api-keys");
|
|
});
|
|
});
|