Skip to content

Commit 48958a6

Browse files
authored
Format task header action tests
Generated-By: PostHog Code Task-Id: 685b450e-680a-44fb-a565-c57e990e6a49
1 parent 4d2f448 commit 48958a6

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

packages/ui/src/features/task-detail/components/TaskHeaderActions.test.tsx

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Theme } from "@radix-ui/themes";
21
import type { Task } from "@posthog/shared/domain-types";
2+
import { Theme } from "@radix-ui/themes";
33
import { render, screen } from "@testing-library/react";
44
import type { ReactNode } from "react";
55
import { describe, expect, it, vi } from "vitest";
@@ -45,22 +45,31 @@ vi.mock("@posthog/ui/features/code-review/hooks/useDiffStatsToggle", () => ({
4545
toggle: vi.fn(),
4646
}),
4747
}));
48-
vi.mock("@posthog/ui/features/skill-buttons/components/SkillButtonsMenu", () => ({
49-
SkillButtonsMenu: () => null,
50-
}));
48+
vi.mock(
49+
"@posthog/ui/features/skill-buttons/components/SkillButtonsMenu",
50+
() => ({
51+
SkillButtonsMenu: () => null,
52+
}),
53+
);
5154
vi.mock("@posthog/ui/features/autoresearch/AutoresearchHeaderButton", () => ({
5255
AutoresearchHeaderButton: () => null,
5356
}));
54-
vi.mock("@posthog/ui/features/git-interaction/components/BranchSelector", () => ({
55-
BranchSelector: () => null,
56-
}));
57+
vi.mock(
58+
"@posthog/ui/features/git-interaction/components/BranchSelector",
59+
() => ({
60+
BranchSelector: () => null,
61+
}),
62+
);
5763
vi.mock(
5864
"@posthog/ui/features/git-interaction/components/CloudGitInteractionHeader",
5965
() => ({ CloudGitInteractionHeader: () => <div>cloud actions</div> }),
6066
);
61-
vi.mock("@posthog/ui/features/git-interaction/components/TaskActionsMenu", () => ({
62-
TaskActionsMenu: () => <div>task menu</div>,
63-
}));
67+
vi.mock(
68+
"@posthog/ui/features/git-interaction/components/TaskActionsMenu",
69+
() => ({
70+
TaskActionsMenu: () => <div>task menu</div>,
71+
}),
72+
);
6473
vi.mock("@posthog/ui/features/sessions/components/StopCloudRunButton", () => ({
6574
StopCloudRunButton: () => <div>stop cloud run</div>,
6675
}));

0 commit comments

Comments
 (0)