Files
lincodex/frontend/src/entities/support-case/model/presentation.test.ts
T

22 lines
760 B
TypeScript

import { describe, expect, it } from "vitest";
import { supportCaseStatusLabels, supportTargetDescription } from "./presentation";
describe("support case presentation", () => {
it("describes operational goals without presenting them as legal deadlines", () => {
expect(
supportTargetDescription({
kind: "operational_goal",
business_days: 5,
due_at: "2026-10-13T09:00:00Z",
answered_at: null,
late: false,
policy_version: 2,
}),
).toMatch(/операционная цель, не юридический срок/);
});
it("labels manual assessment as waiting for an expert", () => {
expect(supportCaseStatusLabels.waiting_expert).toBe("Ожидает эксперта");
});
});