Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit 10cf6a4

Browse files
authored
test(canvas): update channel home hook mock
Generated-By: PostHog Code Task-Id: 45da9f78-5b15-4cfe-a8a5-9afcbd6b4755
1 parent 45a6680 commit 10cf6a4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/ui/src/features/canvas/components/WebsiteChannelHome.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ vi.mock("@posthog/ui/features/canvas/hooks/useChannelsLayout", () => ({
2828
}));
2929
vi.mock("@posthog/ui/features/canvas/hooks/useTaskChannels", () => ({
3030
PERSONAL_CHANNEL_NAME: "me",
31+
useTaskChannels: () => ({
32+
channels: [{ id: "chan-1", name: "eng" }],
33+
isLoading: false,
34+
}),
3135
useBackendChannel: () => ({
3236
channel: { id: "backend-1", name: "eng" },
3337
isLoading: false,

0 commit comments

Comments
 (0)