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 Tey836b620ea452
diff --git a/apps/web/tests/workspaces/retrieve-workspace.test.ts b/apps/web/tests/workspaces/retrieve-workspace.test.ts
index 11050d8020..1fb218ad78 100644
--- a/apps/web/tests/workspaces/retrieve-workspace.test.ts
+++ b/apps/web/tests/workspaces/retrieve-workspace.test.ts
@@ -1,3 +1,4 @@
+import z from "@/lib/zod";
import { WorkspaceSchema } from "@/lib/zod/schemas/workspaces";
import { Project } from "@dub/prisma/client";
import { describe, expect, test } from "vitest";
@@ -21,7 +22,9 @@ describe("GET /workspaces/{idOrSlug}", async () => {
slug: workspace.slug,
});
- WorkspaceSchema.parse(workspaceFetched);
+ WorkspaceSchema.extend({
+ createdAt: z.string(),
+ }).parse(workspaceFetched);
});
test("by slug", async () => {
@@ -38,6 +41,8 @@ describe("GET /workspaces/{idOrSlug}", async () => {
slug: workspace.slug,
});
- WorkspaceSchema.parse(workspaceFetched);
+ WorkspaceSchema.extend({
+ createdAt: z.string(),
+ }).parse(workspaceFetched);
});
});