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 object comparison in link tests

Kiran K6913410db172
diff --git a/apps/web/tests/links/create-link.test.ts b/apps/web/tests/links/create-link.test.ts
index ef750e55b6..a83792637a 100644
--- a/apps/web/tests/links/create-link.test.ts
+++ b/apps/web/tests/links/create-link.test.ts
@@ -27,7 +27,7 @@ test("creates new link", async (ctx) => {
});
expect(status).toEqual(200);
- expect(link).toMatchObject({
+ expect(link).toEqual({
id: expect.any(String),
domain,
url,
diff --git a/apps/web/tests/links/list-links.test.ts b/apps/web/tests/links/list-links.test.ts
index f2d91761da..afd78bd2b0 100644
--- a/apps/web/tests/links/list-links.test.ts
+++ b/apps/web/tests/links/list-links.test.ts
@@ -42,7 +42,7 @@ test("list links", async (ctx) => {
expect(status).toEqual(200);
expect(links.length).toEqual(2);
- expect(links[0]).toMatchObject({
+ expect(links[0]).toEqual({
id: expect.any(String),
domain,
url,
@@ -80,7 +80,7 @@ test("list links", async (ctx) => {
user: JSON.parse(JSON.stringify(user)),
});
- expect(links[1]).toMatchObject({
+ expect(links[1]).toEqual({
id: expect.any(String),
domain,
url,