Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update test

Kiran Ke1f7946ae76e
diff --git a/apps/web/tests/customers/index.test.ts b/apps/web/tests/customers/index.test.ts
index 98b399a4ae..d1ebbdfc09 100644
--- a/apps/web/tests/customers/index.test.ts
+++ b/apps/web/tests/customers/index.test.ts
@@ -56,8 +56,13 @@ describe.sequential("/customers/**", async () => {
query: { workspaceId: workspace.id },
});
+ const customerFound = customers.find(
+ (c) => c.externalId === customerRecord.externalId,
+ );
+
expect(status).toEqual(200);
- expect(customers).toContainEqual(expectedCustomer);
+ expect(customers.length).toBeGreaterThanOrEqual(1);
+ expect(customerFound).toStrictEqual(expectedCustomer);
});
test("PATCH /customers/{externalId}", async () => {