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", () => {
433
433
test ( "do not confirm" , async ( ) => {
434
434
let confirmFound = false
435
435
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 ." ,
437
437
tools : [ "sys.exec" ]
438
438
}
439
439
const run = await g . evaluate ( t , { confirm : true } )
@@ -443,7 +443,7 @@ describe("gptscript module", () => {
443
443
await g . confirm ( { id : data . id , accept : false , message : "I will not allow it!" } )
444
444
} )
445
445
446
- expect ( await run . text ( ) ) . toContain ( "authorization error " )
446
+ expect ( await run . text ( ) ) . toContain ( "FAIL " )
447
447
expect ( run . err ) . toEqual ( "" )
448
448
expect ( confirmFound ) . toBeTruthy ( )
449
449
} )
You can’t perform that action at this time.
0 commit comments