mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-05 18:52:05 +00:00
12 lines
545 B
TypeScript
12 lines
545 B
TypeScript
|
|
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");
|
||
|
|
});
|
||
|
|
});
|