The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update track-click.test.ts
Steven Tey24333d3e62d1
diff --git a/apps/web/tests/tracks/track-click.test.ts b/apps/web/tests/tracks/track-click.test.tsindex c9db578e70..8b9010a132 100644--- a/apps/web/tests/tracks/track-click.test.ts+++ b/apps/web/tests/tracks/track-click.test.ts@@ -5,18 +5,16 @@ import { E2E_LINK } from "../utils/resource";// Helper function to verify click tracking responseconst expectValidClickResponse = ({response,- clickId,hasPartner = false,hasDiscount = false,}: {response: { status: number; data: any };- clickId: string;hasPartner?: boolean;hasDiscount?: boolean;}) => {expect(response.status).toEqual(200);expect(response.data).toStrictEqual({- clickId,+ clickId: expect.any(String),...(hasPartner && {partner: expect.objectContaining({id: expect.any(String),@@ -59,7 +57,6 @@ describe("POST /track/click", async () => {expectValidClickResponse({response,- clickId: response.data.clickId,});});@@ -98,7 +95,6 @@ describe("POST /track/click", async () => {expect(clickResponse.status).toEqual(200);expectValidClickResponse({response: clickResponse,- clickId: clickResponse.data.clickId,hasPartner: true,hasDiscount: true,});