mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
18 lines
569 B
TypeScript
18 lines
569 B
TypeScript
import React from "react";
|
|
import { screen } from "@testing-library/react";
|
|
import { renderWithSetup } from "test/test-utils";
|
|
import PATHS from "router/paths";
|
|
|
|
import LinkCell from "./LinkCell";
|
|
|
|
const VALUE = "40 hosts";
|
|
describe("Link cell", () => {
|
|
it("renders text", async () => {
|
|
const { user } = renderWithSetup(
|
|
<LinkCell value={VALUE} path={PATHS.MANAGE_HOSTS} />
|
|
);
|
|
|
|
expect(screen.getByText("40 hosts")).toBeInTheDocument();
|
|
// Note: Testing react-router Link would require Router or MemoryRouter wrapper which is app level
|
|
});
|
|
});
|