mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 07:23:13 +00:00
test(work-orders): expect frozen POC contact notes in mapper
This commit is contained in:
parent
c7aec49f05
commit
15ea87df4f
1 changed files with 17 additions and 1 deletions
|
|
@ -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",
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue