File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ describe('the RTC Twilio-CLI Plugin', () => {
142142 expect ( room . type ) . toEqual ( 'group' ) ;
143143 } ) ;
144144
145- it ( 'should return a video token with a valid Chat Grant' , async ( ) => {
145+ it ( 'should return a video token with a valid Chat Grant and add the participant to the conversation ' , async ( ) => {
146146 const ROOM_NAME = nanoid ( ) ;
147147 const { body } = await superagent
148148 . post ( `${ URL } /token` )
@@ -155,7 +155,16 @@ describe('the RTC Twilio-CLI Plugin', () => {
155155 service => ( service . sid = conversationServiceSid )
156156 ) ;
157157
158+ const conversationParticipants = await twilioClient . conversations
159+ . conversations ( conversationServiceSid )
160+ . participants . list ( ) ;
161+
162+ const conversationParticipant = conversationParticipants . find (
163+ participant => participant . identity === 'test user'
164+ ) ;
165+
158166 expect ( deployedConversationsService ) . toBeDefined ( ) ;
167+ expect ( conversationParticipant ) . toBeDefined ( ) ;
159168 } ) ;
160169
161170 it ( 'should return a video token without creating a room when the "create_room" flag is false' , async ( ) => {
You can’t perform that action at this time.
0 commit comments