Skip to content

Commit 1a936e8

Browse files
author
Tim Mendoza
committed
Update e2e test
1 parent 7cc03ae commit 1a936e8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/e2e/e2e.test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,22 +158,16 @@ describe('the RTC Twilio-CLI Plugin', () => {
158158
service => (service.sid = conversationServiceSid)
159159
);
160160

161-
// Find the conversation
162-
const conversation = await twilioClient.conversations
161+
// Find the conversation participant
162+
const conversationParticipants = await twilioClient.conversations
163163
.services(deployedConversationsService.sid)
164164
.conversations(room.sid)
165-
.fetch();
166-
167-
// Find the participant that has been added to the conversation
168-
const conversationParticipants = await twilioClient.conversations
169-
.conversations(conversation.sid)
170165
.participants.list();
171166
const conversationParticipant = conversationParticipants.find(
172167
participant => participant.identity === 'test user'
173168
);
174169

175170
expect(deployedConversationsService).toBeDefined();
176-
expect(conversation).toBeDefined();
177171
expect(conversationParticipant).toBeDefined();
178172
});
179173

0 commit comments

Comments
 (0)