Skip to content

Commit

Permalink
fix: failed test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
disha1202 committed Sep 1, 2024
1 parent 8382610 commit ed207f8
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions src/components/UserPortal/ChatRoom/ChatRoom.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,60 @@ const DIRECT_CHAT_BY_ID_QUERY_MOCK = [
},
},
},
{
request: {
query: DIRECT_CHAT_BY_ID,
variables: {
id: '',
},
},
result: {
data: {
directChatById: {
_id: '65844efc814dd4003db811c4',
createdAt: '2345678903456',
messages: [
{
_id: '1',
createdAt: '345678908765',
messageContent: 'Hello',
replyTo: null,
receiver: {
_id: '1',
firstName: 'Disha',
lastName: 'Talreja',
email: 'disha@example.com',
image: '',
},
sender: {
_id: '2',
firstName: 'Test',
lastName: 'User',
email: 'test@example.com',
image: '',
},
},
],
users: [
{
_id: '1',
firstName: 'Disha',
lastName: 'Talreja',
email: 'disha@example.com',
image: '',
},
{
_id: '2',
firstName: 'Test',
lastName: 'User',
email: 'test@example.com',
image: '',
},
],
},
},
},
},
];

const GROUP_CHAT_BY_ID_QUERY_MOCK = [
Expand Down

0 comments on commit ed207f8

Please sign in to comment.