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.

cleanup tests

Kiran K309ac02dd144
diff --git a/apps/web/tests/links/bulk-update-link.test.ts b/apps/web/tests/links/bulk-update-link.test.ts
index 0859377e69..54f8448cd5 100644
--- a/apps/web/tests/links/bulk-update-link.test.ts
+++ b/apps/web/tests/links/bulk-update-link.test.ts
@@ -87,18 +87,13 @@ test("PATCH /links/bulk", async (ctx) => {
link: { id: "xxx" },
});
- // console.log(createdLinks);
-
// third link should throw an error because it does not exist
- // expect(links[2]).toStrictEqual({
- // error:
- // "Invalid url. You can only use git.new short links for URLs starting with `github.com`, `gist.github.com`.",
- // code: "unprocessable_entity",
- // link: {
- // ...createdLinks[1],
-
- // }
- // });
+ expect(links[2]).toStrictEqual({
+ error:
+ "Invalid url. You can only use git.new short links for URLs starting with `github.com`, `gist.github.com`.",
+ code: "unprocessable_entity",
+ link: expect.any(Object),
+ });
afterAll(async () => {
await Promise.all([