@@ -6,8 +6,8 @@ const client = new Opencode({ baseURL: process.env['TEST_API_BASE_URL'] ?? 'http
66
77describe ( 'resource tui' , ( ) => {
88 // skipped: tests are disabled for the time being
9- test . skip ( 'openHelp ' , async ( ) => {
10- const responsePromise = client . tui . openHelp ( ) ;
9+ test . skip ( 'appendPrompt: only required params ' , async ( ) => {
10+ const responsePromise = client . tui . appendPrompt ( { text : 'text' } ) ;
1111 const rawResponse = await responsePromise . asResponse ( ) ;
1212 expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
1313 const response = await responsePromise ;
@@ -18,11 +18,13 @@ describe('resource tui', () => {
1818 } ) ;
1919
2020 // skipped: tests are disabled for the time being
21- test . skip ( 'prompt: only required params' , async ( ) => {
22- const responsePromise = client . tui . prompt ( {
23- parts : [ { id : 'id' , messageID : 'messageID' , sessionID : 'sessionID' , text : 'text' , type : 'text' } ] ,
24- text : 'text' ,
25- } ) ;
21+ test . skip ( 'appendPrompt: required and optional params' , async ( ) => {
22+ const response = await client . tui . appendPrompt ( { text : 'text' } ) ;
23+ } ) ;
24+
25+ // skipped: tests are disabled for the time being
26+ test . skip ( 'openHelp' , async ( ) => {
27+ const responsePromise = client . tui . openHelp ( ) ;
2628 const rawResponse = await responsePromise . asResponse ( ) ;
2729 expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
2830 const response = await responsePromise ;
@@ -31,22 +33,4 @@ describe('resource tui', () => {
3133 expect ( dataAndResponse . data ) . toBe ( response ) ;
3234 expect ( dataAndResponse . response ) . toBe ( rawResponse ) ;
3335 } ) ;
34-
35- // skipped: tests are disabled for the time being
36- test . skip ( 'prompt: required and optional params' , async ( ) => {
37- const response = await client . tui . prompt ( {
38- parts : [
39- {
40- id : 'id' ,
41- messageID : 'messageID' ,
42- sessionID : 'sessionID' ,
43- text : 'text' ,
44- type : 'text' ,
45- synthetic : true ,
46- time : { start : 0 , end : 0 } ,
47- } ,
48- ] ,
49- text : 'text' ,
50- } ) ;
51- } ) ;
5236} ) ;
0 commit comments