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.

fix tests

Steven Tey274e8d3dc439
diff --git a/apps/web/tests/commissions/index.test.ts b/apps/web/tests/commissions/index.test.ts
index 1b01dbceb0..e193f4c1e3 100644
--- a/apps/web/tests/commissions/index.test.ts
+++ b/apps/web/tests/commissions/index.test.ts
@@ -14,8 +14,6 @@ const expectedCommission = {
updatedAt: expect.any(String),
partner: expect.any(Object),
customer: expect.any(Object),
- invoiceId: expect.any(String).nullable(),
- description: expect.any(String).nullable(),
};
describe.sequential("/commissions/**", async () => {
@@ -39,10 +37,7 @@ describe.sequential("/commissions/**", async () => {
expect(status).toEqual(200);
expect(Array.isArray(commissions)).toBe(true);
expect(commissions.length).toBeGreaterThan(0);
- expect(commissions[0]).toMatchObject({
- ...expectedCommission,
- description: null,
- });
+ expect(commissions[0]).toMatchObject(expectedCommission);
// Store the first sale and lead commission's ID for subsequent tests
testCommissionId = commissions.find((c) => c.type === "sale")!.id;