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.

update the links tests

Kiran K1eb98dcd8b76
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index a0ad4c76d1..b48c4788fc 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -323,6 +323,10 @@ export const LinkSchema = z
.boolean()
.default(false)
.describe("Whether the short link uses link cloaking."),
+ noindex: z
+ .boolean()
+ .default(false)
+ .describe("Whether to noindex the short link."),
ios: z
.string()
.nullable()
diff --git a/apps/web/tests/utils/schema.ts b/apps/web/tests/utils/schema.ts
index ce040c12ad..a18944d622 100644
--- a/apps/web/tests/utils/schema.ts
+++ b/apps/web/tests/utils/schema.ts
@@ -19,6 +19,7 @@ export const expectedLink: Partial<Link> & { tagId: string | null } = {
utm_term: null,
utm_content: null,
rewrite: false,
+ noindex: false,
ios: null,
android: null,
geo: null,