The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update index.test.ts
Kiran K018459294c19
diff --git a/apps/web/tests/campaigns/index.test.ts b/apps/web/tests/campaigns/index.test.tsindex f82a63a011..0910d2b214 100644--- a/apps/web/tests/campaigns/index.test.ts+++ b/apps/web/tests/campaigns/index.test.ts@@ -76,6 +76,19 @@ describe.sequential("/campaigns/**", async () => {});});+ test("GET /campaigns/[campaignId] - make sure the draft campaign is created", async () => {+ const { status, data: fetchedCampaign } = await http.get<Campaign>({+ path: `/campaigns/${campaignId}`,+ });++ expect(status).toEqual(200);+ expect(fetchedCampaign).toStrictEqual({+ ...expectedCampaign,+ id: campaignId,+ status: "draft",+ });+ });+test("PATCH /campaigns/[campaignId] - publish campaign", async () => {const { status, data: publishedCampaign } = await http.patch<Campaign>({path: `/campaigns/${campaignId}`,