Skip to content

Commit

Permalink
Update test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill7zz committed May 21, 2019
1 parent d92c2fd commit 5e644fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/functional-tests/tests/directLine.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ describe('Test Azure Bot', function(){
const directLineClient = await getDirectLineClient();
const conversationId = await getConversationId(directLineClient);
await sendMessage(directLineClient, conversationId);
const messages = await getMessages(directLineClient, conversationId);
assert(messages[1].text == `you said "${ userMessage }" 0`, `test fail`);
const messages = await getMessages(directLineClient, conversationId);
const result = messages.filter((message) => message.text.includes('you said'));
assert(result[0].text == `you said "${ userMessage }" 0`, `test fail`);
});
});

0 comments on commit 5e644fd

Please sign in to comment.