The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Revert "test: cover clearing externalId on link update"
Kiran Kb7c7c0cef69b
diff --git a/apps/web/tests/links/update-link.test.ts b/apps/web/tests/links/update-link.test.tsindex e383e567d5..3dd59b1e7f 100644--- a/apps/web/tests/links/update-link.test.ts+++ b/apps/web/tests/links/update-link.test.ts@@ -181,67 +181,6 @@ describe.sequential("PATCH /links/{linkId}", async () => {});});-describe.sequential("PATCH /links/{linkId} - clear externalId", async () => {- const h = new IntegrationHarness();- const { http } = await h.init();-- test("clear existing externalId with empty string", async () => {- const externalId = randomId();- const { data: link } = await http.post<Link>({- path: "/links",- body: { url, domain, externalId },- });-- try {- expect(link.externalId).toEqual(externalId);-- const { status, data: updatedLink } = await http.patch<Link>({- path: `/links/${link.id}`,- body: { externalId: "" },- });-- expect(status).toEqual(200);- expect(updatedLink.externalId).toEqual(null);-- const { data: fetchedLink } = await http.get<Link>({- path: `/links/${link.id}`,- });-- expect(fetchedLink.externalId).toEqual(null);- } finally {- await h.deleteLink(link.id);- }- });-- test("clear existing externalId with null", async () => {- const externalId = randomId();- const { data: link } = await http.post<Link>({- path: "/links",- body: { url, domain, externalId },- });-- try {- expect(link.externalId).toEqual(externalId);-- const { status, data: updatedLink } = await http.patch<Link>({- path: `/links/${link.id}`,- body: { externalId: null },- });-- expect(status).toEqual(200);- expect(updatedLink.externalId).toEqual(null);-- const { data: fetchedLink } = await http.get<Link>({- path: `/links/${link.id}`,- });-- expect(fetchedLink.externalId).toEqual(null);- } finally {- await h.deleteLink(link.id);- }- });-});-describe.sequential("PATCH /links/{linkId} - UTM parameters", async () => {const h = new IntegrationHarness();const { http } = await h.init();