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 create-link.test.ts

Kiran Kc2cc6a848e12
diff --git a/apps/web/tests/links/create-link.test.ts b/apps/web/tests/links/create-link.test.ts
index 4d7a47b145..d22786baca 100644
--- a/apps/web/tests/links/create-link.test.ts
+++ b/apps/web/tests/links/create-link.test.ts
@@ -371,6 +371,10 @@ describe.sequential("POST /links", async () => {
});
test("folders", async () => {
+ onTestFinished(async () => {
+ await Promise.all([h.deleteFolder(folder.id), h.deleteLink(link.id)]);
+ });
+
const { data: folder } = await http.post<FolderRecord>({
path: "/folders",
body: { name: randomId() },
@@ -398,10 +402,6 @@ describe.sequential("POST /links", async () => {
shortLink: `https://${domain}/${link.key}`,
qrCode: `https://api.dub.co/qr?url=https://${domain}/${link.key}?qr=1`,
});
-
- onTestFinished(async () => {
- await Promise.all([h.deleteFolder(folder.id), h.deleteLink(link.id)]);
- });
});
test("custom social media cards", async () => {