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.

Delete folder after tests

Kiran Kef1dd6b2e6c7
diff --git a/apps/web/tests/utils/integration.ts b/apps/web/tests/utils/integration.ts
index 4789d8f860..db9d0be6d1 100644
--- a/apps/web/tests/utils/integration.ts
+++ b/apps/web/tests/utils/integration.ts
@@ -73,4 +73,11 @@ export class IntegrationHarness {
path: `/domains/${slug}`,
});
}
+
+ // Delete folder
+ public async deleteFolder(id: string) {
+ await this.http.delete({
+ path: `/folders/${id}`,
+ });
+ }
}