shoc-frontend-new/src/test/app/(protected)/workorders/wizard-sidebar-summary-rows.test.ts

12 lines
545 B
TypeScript
Raw Normal View History

import { describe, expect, it } from "vitest";
import { buildWizardSidebarSummaryRows } from "@/app/(protected)/workorders/_components/wizard/wizard-sidebar-summary-rows";
import { EMPTY_WIZARD_DRAFT } from "@/domain/work-orders/types/work-order-wizard";
describe("buildWizardSidebarSummaryRows", () => {
it("omits Account from the live summary", () => {
const labels = buildWizardSidebarSummaryRows(EMPTY_WIZARD_DRAFT).map(([label]) => label);
expect(labels).not.toContain("Account");
expect(labels).toContain("Site");
});
});