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.

expect.any(Object).or(null)

Steven Teyfbf0cd9d77e8
diff --git a/apps/web/tests/domains/index.test.ts b/apps/web/tests/domains/index.test.ts
index 7ca199215f..a53f5e51d9 100644
--- a/apps/web/tests/domains/index.test.ts
+++ b/apps/web/tests/domains/index.test.ts
@@ -21,6 +21,7 @@ const expectedDomain = {
expiredUrl: domainRecord.expiredUrl,
createdAt: expect.any(String),
updatedAt: expect.any(String),
+ registeredDomain: expect.any(Object).or(null),
};
describe.sequential("/domains/**", async () => {
@@ -59,10 +60,7 @@ describe.sequential("/domains/**", async () => {
});
expect(status).toEqual(200);
- expect(domains).toContainEqual({
- ...expectedDomain,
- registeredDomain: null,
- });
+ expect(domains).toContainEqual(expectedDomain);
});
test("POST /domains/{slug}/primary", { retry: 3 }, async () => {