File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ describe("gptscript module", () => {
433433 test ( "do not confirm" , async ( ) => {
434434 let confirmFound = false
435435 const t = {
436- instructions : "List the files in the current working directory." ,
436+ instructions : "List the files in the current directory as '.'. If that doesn't work print the word FAIL ." ,
437437 tools : [ "sys.exec" ]
438438 }
439439 const run = await g . evaluate ( t , { confirm : true } )
@@ -443,7 +443,7 @@ describe("gptscript module", () => {
443443 await g . confirm ( { id : data . id , accept : false , message : "I will not allow it!" } )
444444 } )
445445
446- expect ( await run . text ( ) ) . toContain ( "authorization error " )
446+ expect ( await run . text ( ) ) . toContain ( "FAIL " )
447447 expect ( run . err ) . toEqual ( "" )
448448 expect ( confirmFound ) . toBeTruthy ( )
449449 } )
You can’t perform that action at this time.
0 commit comments