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 Tey3d35a35485be
diff --git a/apps/web/tests/discounts/index.test.ts b/apps/web/tests/discounts/index.test.ts
index d931ab9963..b197a93a6d 100644
--- a/apps/web/tests/discounts/index.test.ts
+++ b/apps/web/tests/discounts/index.test.ts
@@ -13,11 +13,7 @@ describe("Discounts", () => {
});
expect(status).toEqual(200);
- expect(customers[0].discount).toStrictEqual({
- ...E2E_DISCOUNT,
- duration: null,
- interval: null,
- });
+ expect(customers[0].discount).toStrictEqual(E2E_DISCOUNT);
});
test("/customers?externalId=", async () => {
@@ -29,11 +25,7 @@ describe("Discounts", () => {
});
expect(status).toEqual(200);
- expect(customers[0].discount).toStrictEqual({
- ...E2E_DISCOUNT,
- duration: null,
- interval: null,
- });
+ expect(customers[0].discount).toStrictEqual(E2E_DISCOUNT);
});
test("/customers/:id", async () => {
diff --git a/apps/web/tests/utils/resource.ts b/apps/web/tests/utils/resource.ts
index 89cf685536..1ad4c27d4e 100644
--- a/apps/web/tests/utils/resource.ts
+++ b/apps/web/tests/utils/resource.ts
@@ -44,6 +44,7 @@ export const E2E_DISCOUNT = {
maxDuration: 3,
couponId: "XZuejd0Q",
couponTestId: "2NMXz81x",
+ description: null,
};
// Program