Skip to content

Commit 9bec1f0

Browse files
committed
fix: tests with new default model
1 parent 9b2d211 commit 9bec1f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extensions/cli/src/stream/streamChatResponse.getAllTools.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe("getAllTools - Tool Filtering", () => {
8080
expect(toolNames).toContain("Bash");
8181
expect(toolNames).toContain("Read");
8282
expect(toolNames).toContain("Write");
83-
expect(toolNames).toContain("Edit");
83+
expect(toolNames).toContain("MultiEdit");
8484
});
8585

8686
test("should include all tools in auto mode", async () => {
@@ -107,7 +107,7 @@ describe("getAllTools - Tool Filtering", () => {
107107
expect(toolNames).toContain("Bash");
108108
expect(toolNames).toContain("Read");
109109
expect(toolNames).toContain("Write");
110-
expect(toolNames).toContain("Edit");
110+
expect(toolNames).toContain("MultiEdit");
111111
});
112112

113113
test("should respect explicit exclude in normal mode", async () => {

extensions/cli/src/stream/streamChatResponse.modeSwitch.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("streamChatResponse - Mode Switch During Streaming", () => {
3535

3636
// Should include write tools in normal mode
3737
expect(toolNames).toContain("Write");
38-
expect(toolNames).toContain("Edit");
38+
expect(toolNames).toContain("MultiEdit");
3939

4040
// Switch to plan mode (simulating Shift+Tab during streaming)
4141
toolPermissionService.switchMode("plan");
@@ -50,7 +50,7 @@ describe("streamChatResponse - Mode Switch During Streaming", () => {
5050

5151
// Should exclude write tools in plan mode
5252
expect(toolNames).not.toContain("Write");
53-
expect(toolNames).not.toContain("Edit");
53+
expect(toolNames).not.toContain("MultiEdit");
5454

5555
// Should still include read-only tools
5656
expect(toolNames).toContain("Read");
@@ -83,7 +83,7 @@ describe("streamChatResponse - Mode Switch During Streaming", () => {
8383
// getAllTools should immediately reflect auto mode (all tools allowed)
8484
tools = await getAllTools();
8585
expect(tools.map((t) => t.function.name)).toContain("Write");
86-
expect(tools.map((t) => t.function.name)).toContain("Edit");
86+
expect(tools.map((t) => t.function.name)).toContain("MultiEdit");
8787
expect(tools.map((t) => t.function.name)).toContain("Read");
8888
});
8989

0 commit comments

Comments
 (0)