fleet/frontend/components/TableContainer/DataTable/IssueCell/IssueCell.tests.tsx
2024-06-18 15:26:45 -04:00

20 lines
446 B
TypeScript

import React from "react";
import { render, screen } from "@testing-library/react";
import IssueCell from "./IssueCell";
describe("Issue cell", () => {
it("renders --- if total issues count is 0", async () => {
render(
<IssueCell
issues={{
total_issues_count: 0,
failing_policies_count: 0,
}}
rowId={1}
/>
);
expect(screen.getByText(/---/i)).toBeInTheDocument();
});
});