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", {
includeAllContacts: true,
includeAddress: true,
includeAllAddresses: true,
});
expect(mockJson).toHaveBeenCalledWith({
data: { id: "123", name: "Acme" },
@@ -85,6 +85,7 @@ describe("companies/[id] +page.server.ts load", () => {
expect(mockOptima.company.fetch).toHaveBeenCalledWith("tok", "c1", {
includeAddress: true,
includeAllAddresses: true,
includePrimaryContact: true,
includeAllContacts: true,
});