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.

wip

Kiran Kf0b6e493c39a
diff --git a/apps/web/tests/workspaces/retrieve-workspace.test.ts b/apps/web/tests/workspaces/retrieve-workspace.test.ts
index 9910b09522..2430b76b2d 100644
--- a/apps/web/tests/workspaces/retrieve-workspace.test.ts
+++ b/apps/web/tests/workspaces/retrieve-workspace.test.ts
@@ -1,9 +1,10 @@
import { Project } from "@prisma/client";
-import { describe, expect, test } from "vitest";
+import { expect, test } from "vitest";
import { HttpClient } from "../utils/http";
import { IntegrationHarness } from "../utils/integration";
+import { expectedWorkspace } from "../utils/schema";
-test("retrieve a workspace by id", async (ctx) => {
+test.skip("retrieve a workspace by id", async (ctx) => {
const h = new IntegrationHarness(ctx);
const { workspace, apiKey } = await h.init();
@@ -18,11 +19,15 @@ test("retrieve a workspace by id", async (ctx) => {
path: `/workspaces/${workspace.id}`,
});
+ // console.log(workspaceFetched);
+
expect(status).toEqual(200);
expect(workspaceFetched).toEqual({
- workspace,
+ ...expectedWorkspace,
+ ...workspace,
domains: [],
- })
+ workspaceId: `ws_${workspace.id}`,
+ });
});
test("retrieve a workspace by slug", async (ctx) => {
@@ -40,9 +45,18 @@ test("retrieve a workspace by slug", async (ctx) => {
path: `/workspaces/${workspace.slug}`,
});
+ console.log({ workspaceFetched });
+ console.log({ workspace });
+
expect(status).toEqual(200);
expect(workspaceFetched).toEqual({
- workspace,
+ // ...expectedWorkspace,
+ ...JSON.parse(JSON.stringify(workspace)),
+ id: `ws_${workspace.id}`,
+ workspaceId: `ws_${workspace.id}`,
+ // name: workspace.name,
+ // s
domains: [],
- })
-});
\ No newline at end of file
+ users: [{ role: "owner" }],
+ });
+});