test(work-orders): expect frozen POC contact notes in mapper

This commit is contained in:
Arthur Bassi 2026-09-14 10:19:12 -03:00
parent c7aec49f05
commit 15ea87df4f

View file

@ -207,7 +207,23 @@ describe("mapWorkOrderTableRow completion snapshot", () => {
phone: "111",
});
expect(row.frozenPoc).toEqual({
contacts: [{ name: "Frozen POC", phone: "222" }],
contacts: [{ name: "Frozen POC", phone: "222", notes: "" }],
notes: "Call first",
});
});
it("maps frozen POC contact notes when the payload supplies them", () => {
const row = mapWorkOrderTableRow({
id: 192,
lifecycleStatus: 7,
frozenPoc: {
contacts: [{ name: "Frozen POC", phone: "222", notes: "Gate code 9" }],
notes: "Call first",
},
});
expect(row.frozenPoc).toEqual({
contacts: [{ name: "Frozen POC", phone: "222", notes: "Gate code 9" }],
notes: "Call first",
});
});