Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
test fix #789
Browse files Browse the repository at this point in the history
  • Loading branch information
batamar committed Jun 4, 2020
1 parent 26abfcb commit d414cb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/__tests__/conversationDb.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ describe('Conversation db', () => {
});

test('Conversation message', async () => {
await conversationMessageFactory({ conversationId: _conversation._id, internal: false });

// non answered messages =========
const nonAnweredMessage = await ConversationMessages.getNonAsnweredMessage(_conversation._id);

Expand All @@ -325,7 +327,7 @@ describe('Conversation db', () => {

const adminMessages = await ConversationMessages.getAdminMessages(_conversation._id);

expect(adminMessages.length).toBe(1);
expect(adminMessages.length).toBe(2);

// mark sent as read messages ==================
await ConversationMessages.updateMany(
Expand Down

0 comments on commit d414cb6

Please sign in to comment.