summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-01-24 23:42:12 -0500
committerAiden Cline <[email protected]>2026-01-24 23:42:12 -0500
commite2d0d85d93d6253f069f64c2395ebc116b85126d (patch)
treedd12af5c9df8c00b2726e34e9e6cbb1e3c84ba21
parent2917a2fa61b98ecb04ef15d4a852d32f55727ee9 (diff)
downloadopencode-e2d0d85d93d6253f069f64c2395ebc116b85126d.tar.gz
opencode-e2d0d85d93d6253f069f64c2395ebc116b85126d.zip
test: fix
-rw-r--r--packages/opencode/test/tool/question.test.ts80
1 files changed, 40 insertions, 40 deletions
diff --git a/packages/opencode/test/tool/question.test.ts b/packages/opencode/test/tool/question.test.ts
index 9710edd9a..c11b5ed6a 100644
--- a/packages/opencode/test/tool/question.test.ts
+++ b/packages/opencode/test/tool/question.test.ts
@@ -63,44 +63,44 @@ describe("tool.question", () => {
expect(result.output).toContain(`"What is your favorite animal?"="Dog"`)
})
-// intentionally removed the zod validation due to tool call errors, hoping prompting is gonna be good enough
-// test("should throw an Error for header exceeding 30 characters", async () => {
-// const tool = await QuestionTool.init()
-// const questions = [
-// {
-// question: "What is your favorite animal?",
-// header: "This Header is Definitely More Than Thirty Characters Long",
-// options: [{ label: "Dog", description: "Man's best friend" }],
-// },
-// ]
-// try {
-// await tool.execute({ questions }, ctx)
-// // If it reaches here, the test should fail
-// expect(true).toBe(false)
-// } catch (e: any) {
-// expect(e).toBeInstanceOf(Error)
-// expect(e.cause).toBeInstanceOf(z.ZodError)
-// }
-// })
+ // intentionally removed the zod validation due to tool call errors, hoping prompting is gonna be good enough
+ // test("should throw an Error for header exceeding 30 characters", async () => {
+ // const tool = await QuestionTool.init()
+ // const questions = [
+ // {
+ // question: "What is your favorite animal?",
+ // header: "This Header is Definitely More Than Thirty Characters Long",
+ // options: [{ label: "Dog", description: "Man's best friend" }],
+ // },
+ // ]
+ // try {
+ // await tool.execute({ questions }, ctx)
+ // // If it reaches here, the test should fail
+ // expect(true).toBe(false)
+ // } catch (e: any) {
+ // expect(e).toBeInstanceOf(Error)
+ // expect(e.cause).toBeInstanceOf(z.ZodError)
+ // }
+ // })
-// test("should throw an Error for label exceeding 30 characters", async () => {
-// const tool = await QuestionTool.init()
-// const questions = [
-// {
-// question: "A question with a very long label",
-// header: "Long Label",
-// options: [
-// { label: "This is a very, very, very long label that will exceed the limit", description: "A description" },
-// ],
-// },
-// ]
-// try {
-// await tool.execute({ questions }, ctx)
-// // If it reaches here, the test should fail
-// expect(true).toBe(false)
-// } catch (e: any) {
-// expect(e).toBeInstanceOf(Error)
-// expect(e.cause).toBeInstanceOf(z.ZodError)
-// }
-// })
-// })
+ // test("should throw an Error for label exceeding 30 characters", async () => {
+ // const tool = await QuestionTool.init()
+ // const questions = [
+ // {
+ // question: "A question with a very long label",
+ // header: "Long Label",
+ // options: [
+ // { label: "This is a very, very, very long label that will exceed the limit", description: "A description" },
+ // ],
+ // },
+ // ]
+ // try {
+ // await tool.execute({ questions }, ctx)
+ // // If it reaches here, the test should fail
+ // expect(true).toBe(false)
+ // } catch (e: any) {
+ // expect(e).toBeInstanceOf(Error)
+ // expect(e.cause).toBeInstanceOf(z.ZodError)
+ // }
+ // })
+})