fix: update company fetch tests to expect includeAllAddresses
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user