mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-31 00:40:46 +02:00
23 lines
774 B
TypeScript
23 lines
774 B
TypeScript
// @vitest-environment jsdom
|
|
|
|
import { render } from "@testing-library/react";
|
|
import { describe, expect, it } from "vitest";
|
|
import { PriorityIcon } from "./priority-icon";
|
|
import { StatusIcon } from "./status-icon";
|
|
|
|
describe("issue icons", () => {
|
|
it("renders a muted fallback for unknown status values", () => {
|
|
const { container } = render(<StatusIcon status="unexpected_status" />);
|
|
|
|
const icon = container.querySelector("svg");
|
|
expect(icon).toHaveClass("text-muted-foreground");
|
|
});
|
|
|
|
it("renders a muted fallback for unknown priority values", () => {
|
|
const { container } = render(<PriorityIcon priority="unexpected_priority" />);
|
|
|
|
const icon = container.querySelector("svg");
|
|
expect(icon).toHaveClass("text-muted-foreground");
|
|
});
|
|
});
|