The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update E2E_CUSTOMER_WITH_DISCOUNT
Kiran Kbe6d99543dfe
diff --git a/apps/web/tests/discounts/index.test.ts b/apps/web/tests/discounts/index.test.tsindex b14efde0f3..d931ab9963 100644--- a/apps/web/tests/discounts/index.test.ts+++ b/apps/web/tests/discounts/index.test.ts@@ -20,6 +20,22 @@ describe("Discounts", () => {});});+ test("/customers?externalId=", async () => {+ const h = new IntegrationHarness();+ const { http } = await h.init();++ const { status, data: customers } = await http.get<CustomerEnriched[]>({+ path: `/customers?externalId=${E2E_CUSTOMER_WITH_DISCOUNT.externalId}&includeExpandedFields=true`,+ });++ expect(status).toEqual(200);+ expect(customers[0].discount).toStrictEqual({+ ...E2E_DISCOUNT,+ duration: null,+ interval: null,+ });+ });+test("/customers/:id", async () => {const h = new IntegrationHarness();const { http } = await h.init();diff --git a/apps/web/tests/utils/resource.ts b/apps/web/tests/utils/resource.tsindex 5148715f91..e31c1c0166 100644--- a/apps/web/tests/utils/resource.ts+++ b/apps/web/tests/utils/resource.ts@@ -32,8 +32,9 @@ export const E2E_NO_ACCESS_FOLDER_LINK_ID = "link_SeHtHzjuiOOAPCDLAvTNEKXm"; //// Discounts specificexport const E2E_CUSTOMER_WITH_DISCOUNT = {- id: "cm25onzuv0001s1bbxchrc0ae",- email: "[email protected]",+ id: "cus_pNGuZQJrAKjzttQTZMI4a46y",+ externalId: "cus_PowZhxHqUvN8MSdszEElqsUx",+ email: "[email protected]",};export const E2E_DISCOUNT = {