diff --git a/src/test/domain/work-orders/mappers/work-order-table-row-mapper.test.ts b/src/test/domain/work-orders/mappers/work-order-table-row-mapper.test.ts index 910e42d3..9315fd9d 100644 --- a/src/test/domain/work-orders/mappers/work-order-table-row-mapper.test.ts +++ b/src/test/domain/work-orders/mappers/work-order-table-row-mapper.test.ts @@ -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", }); });