Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

improve test

Kiran K0fbb641823fd
diff --git a/apps/web/tests/links/upsert-link.test.ts b/apps/web/tests/links/upsert-link.test.ts
index a477563403..99512da437 100644
--- a/apps/web/tests/links/upsert-link.test.ts
+++ b/apps/web/tests/links/upsert-link.test.ts
@@ -46,7 +46,7 @@ describe.sequential("PUT /links/upsert", async () => {
const { data: updatedLink } = await http.put<Link>({
path: "/links/upsert",
query: { workspaceId },
- body: { domain, url },
+ body: { domain, url, comments: "Updated comment" },
});
expect(updatedLink).toStrictEqual({
@@ -56,6 +56,7 @@ describe.sequential("PUT /links/upsert", async () => {
userId: user.id,
projectId,
workspaceId,
+ comments: "Updated comment",
shortLink: `https://${domain}/${createdLink.key}`,
qrCode: `https://api.dub.co/qr?url=https://${domain}/${createdLink.key}?qr=1`,
tags: [],