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.

fix the tests

Kiran K2970a7b1a7ff
diff --git a/apps/web/tests/links/update-link.test.ts b/apps/web/tests/links/update-link.test.ts
index ec6e87d9bf..c80ef57c81 100644
--- a/apps/web/tests/links/update-link.test.ts
+++ b/apps/web/tests/links/update-link.test.ts
@@ -62,6 +62,7 @@ describe.sequential("PATCH /links/{linkId}", async () => {
projectId,
shortLink: `https://${domain}/${toUpdate.key}`,
qrCode: `https://api.dub.co/qr?url=https://${domain}/${toUpdate.key}?qr=1`,
+ webhooks: expect.any(Array),
});
// Fetch the link
@@ -105,6 +106,7 @@ describe.sequential("PATCH /links/{linkId}", async () => {
projectId,
shortLink: `https://${domain}/${toUpdate.key}`,
qrCode: `https://api.dub.co/qr?url=https://${domain}/${toUpdate.key}?qr=1`,
+ webhooks: expect.any(Array),
});
// Fetch the link
@@ -137,6 +139,7 @@ describe.sequential("PATCH /links/{linkId}", async () => {
projectId,
shortLink: `https://${domain}/${toUpdate.key}`,
qrCode: `https://api.dub.co/qr?url=https://${domain}/${toUpdate.key}?qr=1`,
+ webhooks: expect.any(Array),
});
// Fetch the link
@@ -170,6 +173,7 @@ describe.sequential("PATCH /links/{linkId}", async () => {
projectId,
shortLink: `https://${domain}/${toUpdate.key}`,
qrCode: `https://api.dub.co/qr?url=https://${domain}/${toUpdate.key}?qr=1`,
+ webhooks: expect.any(Array),
});
// Fetch the link
@@ -238,6 +242,7 @@ describe.sequential(
projectId,
shortLink: `https://${domain}/${toUpdate.key}`,
qrCode: `https://api.dub.co/qr?url=https://${domain}/${toUpdate.key}?qr=1`,
+ webhooks: expect.any(Array),
});
// Fetch the link
diff --git a/apps/web/tests/links/upsert-link.test.ts b/apps/web/tests/links/upsert-link.test.ts
index 07a9cc22a6..a7b6e9c6c1 100644
--- a/apps/web/tests/links/upsert-link.test.ts
+++ b/apps/web/tests/links/upsert-link.test.ts
@@ -55,6 +55,7 @@ describe.sequential("PUT /links/upsert", async () => {
comments: "Updated comment",
shortLink: `https://${domain}/${createdLink.key}`,
qrCode: `https://api.dub.co/qr?url=https://${domain}/${createdLink.key}?qr=1`,
+ webhooks: expect.any(Array),
});
});
});