We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d220cc8 commit 9598712Copy full SHA for 9598712
tests/gptscript.test.ts
@@ -433,7 +433,7 @@ describe("gptscript module", () => {
433
test("do not confirm", async () => {
434
let confirmFound = false
435
const t = {
436
- instructions: "List the files in the current working directory.",
+ instructions: "List the files in the current directory as '.'. If that doesn't work print the word FAIL.",
437
tools: ["sys.exec"]
438
}
439
const run = await g.evaluate(t, {confirm: true})
@@ -443,7 +443,7 @@ describe("gptscript module", () => {
443
await g.confirm({id: data.id, accept: false, message: "I will not allow it!"})
444
})
445
446
- expect(await run.text()).toContain("authorization error")
+ expect(await run.text()).toContain("FAIL")
447
expect(run.err).toEqual("")
448
expect(confirmFound).toBeTruthy()
449
0 commit comments