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 retrieve-workspace.test.ts

Steven Tey314952606547
diff --git a/apps/web/tests/workspaces/retrieve-workspace.test.ts b/apps/web/tests/workspaces/retrieve-workspace.test.ts
index 5beb13c991..11050d8020 100644
--- a/apps/web/tests/workspaces/retrieve-workspace.test.ts
+++ b/apps/web/tests/workspaces/retrieve-workspace.test.ts
@@ -1,4 +1,3 @@
-import z from "@/lib/zod";
import { WorkspaceSchema } from "@/lib/zod/schemas/workspaces";
import { Project } from "@dub/prisma/client";
import { describe, expect, test } from "vitest";
@@ -22,11 +21,7 @@ describe("GET /workspaces/{idOrSlug}", async () => {
slug: workspace.slug,
});
- WorkspaceSchema.extend({
- createdAt: z.string(),
- })
- .strict()
- .parse(workspaceFetched);
+ WorkspaceSchema.parse(workspaceFetched);
});
test("by slug", async () => {
@@ -43,10 +38,6 @@ describe("GET /workspaces/{idOrSlug}", async () => {
slug: workspace.slug,
});
- WorkspaceSchema.extend({
- createdAt: z.string(),
- })
- .strict()
- .parse(workspaceFetched);
+ WorkspaceSchema.parse(workspaceFetched);
});
});