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 workspace tests

Kiran K5fd0ede7a191
diff --git a/apps/web/tests/utils/schema.ts b/apps/web/tests/utils/schema.ts
index c543574592..72902f8e13 100644
--- a/apps/web/tests/utils/schema.ts
+++ b/apps/web/tests/utils/schema.ts
@@ -40,7 +40,7 @@ export const expectedTag: Partial<Tag> = {
export const expectedWorkspace: Partial<Project> = {
logo: null,
- plan: "free",
+ plan: expect.any(Number),
stripeId: null,
usage: expect.any(Number),
usageLimit: 1000,
diff --git a/apps/web/tests/workspaces/list-workspaces.test.ts b/apps/web/tests/workspaces/list-workspaces.test.ts
index e965b355cc..68d4a7c587 100644
--- a/apps/web/tests/workspaces/list-workspaces.test.ts
+++ b/apps/web/tests/workspaces/list-workspaces.test.ts
@@ -22,7 +22,6 @@ test("GET /workspaces", async (ctx) => {
name: workspace.name,
slug: workspace.slug,
id: workspace.id,
- plan: "pro",
domains: [],
users: [{ role: "owner" }],
});
diff --git a/apps/web/tests/workspaces/retrieve-workspace.test.ts b/apps/web/tests/workspaces/retrieve-workspace.test.ts
index 09c007bec0..5b331e8ac4 100644
--- a/apps/web/tests/workspaces/retrieve-workspace.test.ts
+++ b/apps/web/tests/workspaces/retrieve-workspace.test.ts
@@ -17,7 +17,6 @@ test("GET /workspaces/{id}", async (ctx) => {
name: workspace.name,
slug: workspace.slug,
id: workspace.id,
- plan: "pro",
domains: [],
users: [{ role: "owner" }],
});
@@ -37,7 +36,6 @@ test("GET /workspaces/{slug}", async (ctx) => {
name: workspace.name,
slug: workspace.slug,
id: workspace.id,
- plan: "pro",
domains: [],
users: [{ role: "owner" }],
});