Add tests for chats query

This commit is contained in:
Chewbacca
2022-10-28 13:01:39 -04:00
parent 3e2888eb75
commit 24bca458bd
8 changed files with 378 additions and 36 deletions

View File

@@ -18,8 +18,8 @@ const chat: any = {
id: '12332423234',
unread: true,
},
created_at: new Date('2022-09-09T16:02:26.186Z'),
updated_at: new Date('2022-09-09T16:02:26.186Z'),
created_at: '2022-09-09T16:02:26.186Z',
updated_at: '2022-09-09T16:02:26.186Z',
accepted: true,
discarded_at: null,
account: {

View File

@@ -28,7 +28,7 @@ const chatMessages: IChatMessage[] = [
account_id: '1',
chat_id: '14',
content: 'this is the first chat',
created_at: new Date('2022-09-09T16:02:26.186Z'),
created_at: '2022-09-09T16:02:26.186Z',
id: '1',
unread: false,
pending: false,
@@ -37,7 +37,7 @@ const chatMessages: IChatMessage[] = [
account_id: '2',
chat_id: '14',
content: 'this is the second chat',
created_at: new Date('2022-09-09T16:04:26.186Z'),
created_at: '2022-09-09T16:04:26.186Z',
id: '2',
unread: true,
pending: false,