The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix the tag test
Kiran K66050076e1c0
diff --git a/apps/web/tests/tags/create-tag.test.ts b/apps/web/tests/tags/create-tag.test.tsindex 93442c4bd9..cea6984bbb 100644--- a/apps/web/tests/tags/create-tag.test.ts+++ b/apps/web/tests/tags/create-tag.test.ts@@ -1,24 +1,26 @@import { Tag } from "@prisma/client";import { afterAll, expect, test } from "vitest";+import { randomId } from "../utils/helpers";import { IntegrationHarness } from "../utils/integration";test("POST /tags", async (ctx) => {const h = new IntegrationHarness(ctx);const { http } = await h.init();+ const newTag = {+ name: randomId(),+ color: "red",+ };+const { status, data: tag } = await http.post<Tag>({path: "/tags",- body: {- tag: "social",- color: "red",- },+ body: newTag,});expect(status).toEqual(201);expect(tag).toStrictEqual({id: expect.any(String),- name: "social",- color: "red",+ ...newTag,});afterAll(async () => {