fix: update company fetch tests to expect includeAllAddresses

This commit is contained in:
2026-04-18 14:51:31 +00:00
parent f91d8debcb
commit cdd9ad64eb
2 changed files with 2 additions and 0 deletions
@@ -46,6 +46,7 @@ describe("GET /api/companies/[id]/details", () => {
expect(mockOptima.company.fetch).toHaveBeenCalledWith("tok", "123", { expect(mockOptima.company.fetch).toHaveBeenCalledWith("tok", "123", {
includeAllContacts: true, includeAllContacts: true,
includeAddress: true, includeAddress: true,
includeAllAddresses: true,
}); });
expect(mockJson).toHaveBeenCalledWith({ expect(mockJson).toHaveBeenCalledWith({
data: { id: "123", name: "Acme" }, data: { id: "123", name: "Acme" },
@@ -85,6 +85,7 @@ describe("companies/[id] +page.server.ts load", () => {
expect(mockOptima.company.fetch).toHaveBeenCalledWith("tok", "c1", { expect(mockOptima.company.fetch).toHaveBeenCalledWith("tok", "c1", {
includeAddress: true, includeAddress: true,
includeAllAddresses: true,
includePrimaryContact: true, includePrimaryContact: true,
includeAllContacts: true, includeAllContacts: true,
}); });