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 tests

Steven Tey46ded70061fd
diff --git a/apps/web/scripts/update-public-stats.ts b/apps/web/scripts/update-public-stats.ts
deleted file mode 100644
index 8e05f2a74b..0000000000
--- a/apps/web/scripts/update-public-stats.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { prisma } from "@/lib/prisma";
-
-import "dotenv-flow/config";
-
-async function main() {
- const links = await prisma.link.updateMany({
- where: {
- domain: "xxx",
- },
- data: {
- publicStats: true,
- },
- });
-
- console.log(links);
-}
-
-main();
diff --git a/apps/web/tests/links/create-link.test.ts b/apps/web/tests/links/create-link.test.ts
index 1cc151b58b..c6a3e173e7 100644
--- a/apps/web/tests/links/create-link.test.ts
+++ b/apps/web/tests/links/create-link.test.ts
@@ -50,7 +50,6 @@ describe.sequential("POST /links", async () => {
path: "/links",
body: {
url,
- publicStats: true,
comments: "This is a test",
rewrite: true,
domain,
@@ -63,7 +62,6 @@ describe.sequential("POST /links", async () => {
...expectedLink,
url,
externalId,
- publicStats: true,
comments: "This is a test",
rewrite: true,
userId: user.id,
diff --git a/apps/web/tests/links/update-link.test.ts b/apps/web/tests/links/update-link.test.ts
index 9c18f3bc8b..07311fdee0 100644
--- a/apps/web/tests/links/update-link.test.ts
+++ b/apps/web/tests/links/update-link.test.ts
@@ -28,7 +28,6 @@ describe.sequential("PATCH /links/{linkId}", async () => {
url: "https://github.com/dubinc/dub",
title: "Dub Inc",
description: "Open-source link management infrastructure.",
- publicStats: true,
comments: "This is a comment.",
expiresAt: new Date("2030-04-16T17:00:00.000Z"),
expiredUrl: "https://github.com/expired",
@@ -204,7 +203,6 @@ describe.sequential(
url: "https://github.com/dubinc/dub",
title: "Dub Inc",
description: "Open-source link management infrastructure.",
- publicStats: true,
comments: "This is a comment.",
expiresAt: new Date("2030-04-16T17:00:00.000Z"),
expiredUrl: "https://github.com/expired",