Add tests for chats query
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user