Skip to content

Commit 246d731

Browse files
committed
fix: update webview-ui tests to use camelCase runSlashCommand
- Updated ChatRow.run-slash-command.spec.tsx to use 'runSlashCommand' instead of 'run_slash_command' - Ensures consistency with backend changes for auto-approval functionality
1 parent 7aa06d5 commit 246d731

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

webview-ui/src/components/chat/__tests__/ChatRow.run-slash-command.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ const mockOnSuggestionClick = vi.fn()
5757
const mockOnBatchFileResponse = vi.fn()
5858
const mockOnFollowUpUnmount = vi.fn()
5959

60-
describe("ChatRow - run_slash_command tool", () => {
60+
describe("ChatRow - runSlashCommand tool", () => {
6161
beforeEach(() => {
6262
vi.clearAllMocks()
6363
})
6464

65-
it("should display run_slash_command ask message with command only", () => {
65+
it("should display runSlashCommand ask message with command only", () => {
6666
const message: any = {
6767
type: "ask",
6868
ask: "tool",
6969
ts: Date.now(),
7070
text: JSON.stringify({
71-
tool: "run_slash_command",
71+
tool: "runSlashCommand",
7272
command: "init",
7373
}),
7474
partial: false,
@@ -80,13 +80,13 @@ describe("ChatRow - run_slash_command tool", () => {
8080
expect(getByText("/init")).toBeInTheDocument()
8181
})
8282

83-
it("should display run_slash_command ask message with command and args", () => {
83+
it("should display runSlashCommand ask message with command and args", () => {
8484
const message: any = {
8585
type: "ask",
8686
ask: "tool",
8787
ts: Date.now(),
8888
text: JSON.stringify({
89-
tool: "run_slash_command",
89+
tool: "runSlashCommand",
9090
command: "test",
9191
args: "focus on unit tests",
9292
description: "Run project tests",
@@ -104,13 +104,13 @@ describe("ChatRow - run_slash_command tool", () => {
104104
expect(getByText("project")).toBeInTheDocument()
105105
})
106106

107-
it("should display run_slash_command say message", () => {
107+
it("should display runSlashCommand say message", () => {
108108
const message: any = {
109109
type: "say",
110110
say: "tool",
111111
ts: Date.now(),
112112
text: JSON.stringify({
113-
tool: "run_slash_command",
113+
tool: "runSlashCommand",
114114
command: "deploy",
115115
source: "global",
116116
}),

0 commit comments

Comments
 (0)