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 link test

Kiran Ke58f037d9369
diff --git a/apps/web/tests/links/create-link-error.test.ts b/apps/web/tests/links/create-link-error.test.ts
index c951a8824c..321af4df8b 100644
--- a/apps/web/tests/links/create-link-error.test.ts
+++ b/apps/web/tests/links/create-link-error.test.ts
@@ -30,12 +30,13 @@ const cases = [
url: "invalid",
},
expected: {
- status: 400,
+ status: 422,
data: {
error: {
- code: "bad_request",
- message: "Missing destination URL",
- doc_url: "https://dub.co/docs/api-reference/errors#bad-request",
+ code: "unprocessable_entity",
+ message: "Invalid destination URL",
+ doc_url:
+ "https://dub.co/docs/api-reference/errors#unprocessable-entity",
},
},
},