Skip to content

Commit 64ef921

Browse files
committed
fix: update test files to use supportsImages instead of supportsComputerUse
1 parent 55d9715 commit 64ef921

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/core/prompts/tools/__tests__/attempt-completion.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe("getAttemptCompletionDescription", () => {
44
it("should NOT include command parameter in the description", () => {
55
const args = {
66
cwd: "/test/path",
7-
supportsComputerUse: false,
7+
supportsImages: false,
88
}
99

1010
const description = getAttemptCompletionDescription(args)
@@ -41,7 +41,7 @@ describe("getAttemptCompletionDescription", () => {
4141
it("should show example without command", () => {
4242
const args = {
4343
cwd: "/test/path",
44-
supportsComputerUse: false,
44+
supportsImages: false,
4545
}
4646

4747
const description = getAttemptCompletionDescription(args)

src/core/prompts/tools/__tests__/new-task.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe("getNewTaskDescription", () => {
55
it("should NOT show todos parameter at all when setting is disabled", () => {
66
const args: ToolArgs = {
77
cwd: "/test",
8-
supportsComputerUse: false,
8+
supportsImages: false,
99
settings: {
1010
newTaskRequireTodos: false,
1111
},
@@ -33,7 +33,7 @@ describe("getNewTaskDescription", () => {
3333
it("should show todos as required when setting is enabled", () => {
3434
const args: ToolArgs = {
3535
cwd: "/test",
36-
supportsComputerUse: false,
36+
supportsImages: false,
3737
settings: {
3838
newTaskRequireTodos: true,
3939
},
@@ -59,7 +59,7 @@ describe("getNewTaskDescription", () => {
5959
it("should NOT show todos parameter when settings is undefined", () => {
6060
const args: ToolArgs = {
6161
cwd: "/test",
62-
supportsComputerUse: false,
62+
supportsImages: false,
6363
settings: undefined,
6464
}
6565

@@ -75,7 +75,7 @@ describe("getNewTaskDescription", () => {
7575
it("should NOT show todos parameter when newTaskRequireTodos is undefined", () => {
7676
const args: ToolArgs = {
7777
cwd: "/test",
78-
supportsComputerUse: false,
78+
supportsImages: false,
7979
settings: {},
8080
}
8181

@@ -91,15 +91,15 @@ describe("getNewTaskDescription", () => {
9191
it("should include todos in examples only when setting is enabled", () => {
9292
const argsWithSettingOff: ToolArgs = {
9393
cwd: "/test",
94-
supportsComputerUse: false,
94+
supportsImages: false,
9595
settings: {
9696
newTaskRequireTodos: false,
9797
},
9898
}
9999

100100
const argsWithSettingOn: ToolArgs = {
101101
cwd: "/test",
102-
supportsComputerUse: false,
102+
supportsImages: false,
103103
settings: {
104104
newTaskRequireTodos: true,
105105
},

0 commit comments

Comments
 (0)