@@ -1228,7 +1228,11 @@ describe('WebClient', () => {
12281228 ok : true ,
12291229 ts : '123.123' ,
12301230 } )
1231- . post ( '/api/chat.stopStream' , { channel : 'C0123456789' , ts : '123.123' , markdown_text : 'nice!' } )
1231+ . post ( '/api/chat.stopStream' , {
1232+ channel : 'C0123456789' ,
1233+ ts : '123.123' ,
1234+ chunks : JSON . stringify ( [ { type : 'markdown_text' , text : 'nice!' } ] ) ,
1235+ } )
12321236 . reply ( 200 , {
12331237 ok : true ,
12341238 } ) ;
@@ -1279,7 +1283,7 @@ describe('WebClient', () => {
12791283 const scope = nock ( 'https://slack.com' )
12801284 . post ( '/api/chat.startStream' , {
12811285 channel : 'C0123456789' ,
1282- markdown_text : '**this messag' ,
1286+ chunks : JSON . stringify ( [ { type : ' markdown_text' , text : '**this messag' } ] ) ,
12831287 recipient_team_id : 'T0123456789' ,
12841288 recipient_user_id : 'U0123456789' ,
12851289 thread_ts : '123.000' ,
@@ -1290,7 +1294,7 @@ describe('WebClient', () => {
12901294 } )
12911295 . post ( '/api/chat.appendStream' , {
12921296 channel : 'C0123456789' ,
1293- markdown_text : 'e is bold!' ,
1297+ chunks : JSON . stringify ( [ { type : ' markdown_text' , text : 'e is bold!' } ] ) ,
12941298 token : 'xoxb-updated-1' ,
12951299 ts : '123.123' ,
12961300 } )
@@ -1300,7 +1304,7 @@ describe('WebClient', () => {
13001304 . post ( '/api/chat.stopStream' , {
13011305 blocks : JSON . stringify ( [ contextActionsBlock ] ) ,
13021306 channel : 'C0123456789' ,
1303- markdown_text : '**' ,
1307+ chunks : JSON . stringify ( [ { type : ' markdown_text' , text : '**' } ] ) ,
13041308 token : 'xoxb-updated-2' ,
13051309 ts : '123.123' ,
13061310 } )
@@ -1370,7 +1374,11 @@ describe('WebClient', () => {
13701374 ok : true ,
13711375 ts : '123.123' ,
13721376 } )
1373- . post ( '/api/chat.stopStream' , { channel : 'C0123456789' , ts : '123.123' , markdown_text : 'nice!' } )
1377+ . post ( '/api/chat.stopStream' , {
1378+ channel : 'C0123456789' ,
1379+ ts : '123.123' ,
1380+ chunks : JSON . stringify ( [ { type : 'markdown_text' , text : 'nice!' } ] ) ,
1381+ } )
13741382 . reply ( 200 , {
13751383 ok : true ,
13761384 } ) ;
0 commit comments