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 index.test.ts

Steven Teyda8de4b343ba
diff --git a/apps/web/tests/domains/index.test.ts b/apps/web/tests/domains/index.test.ts
index 8ae882aba5..7ca199215f 100644
--- a/apps/web/tests/domains/index.test.ts
+++ b/apps/web/tests/domains/index.test.ts
@@ -19,7 +19,6 @@ const expectedDomain = {
archived: false,
placeholder: domainRecord.placeholder,
expiredUrl: domainRecord.expiredUrl,
- registeredDomain: null,
createdAt: expect.any(String),
updatedAt: expect.any(String),
};
@@ -50,7 +49,7 @@ describe.sequential("/domains/**", async () => {
});
expect(status).toEqual(200);
- expect(domain).toStrictEqual(expectedDomain);
+ expect(domain).toStrictEqual({ ...expectedDomain, registeredDomain: null });
});
test("GET /domains", async () => {
@@ -60,7 +59,10 @@ describe.sequential("/domains/**", async () => {
});
expect(status).toEqual(200);
- expect(domains).toContainEqual(expectedDomain);
+ expect(domains).toContainEqual({
+ ...expectedDomain,
+ registeredDomain: null,
+ });
});
test("POST /domains/{slug}/primary", { retry: 3 }, async () => {