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", {
|
||||
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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user