From 2d82877564ed28f87d2dad80a1e34ee6f4dfe090 Mon Sep 17 00:00:00 2001 From: Disha Date: Mon, 21 Oct 2024 12:39:55 +0530 Subject: [PATCH] fix: type errors --- src/components/UserPortal/ChatRoom/ChatRoom.test.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/UserPortal/ChatRoom/ChatRoom.test.tsx b/src/components/UserPortal/ChatRoom/ChatRoom.test.tsx index 96290f4e16..76fc5ffd76 100644 --- a/src/components/UserPortal/ChatRoom/ChatRoom.test.tsx +++ b/src/components/UserPortal/ChatRoom/ChatRoom.test.tsx @@ -20,6 +20,7 @@ import { } from 'GraphQl/Mutations/OrganizationMutations'; import ChatRoom from './ChatRoom'; import { useLocalStorage } from 'utils/useLocalstorage'; +import { StaticMockLink } from 'utils/StaticMockLink'; const { setItem } = useLocalStorage(); @@ -1188,7 +1189,7 @@ describe('Testing Chatroom Component [User Portal]', () => { - + @@ -1261,11 +1262,11 @@ describe('Testing Chatroom Component [User Portal]', () => { test('send message direct chat when userId is different', async () => { setItem('userId', '8'); const mocks = [ - ...SEND_MESSAGE_TO_DIRECT_CHAT_MOCK, - ...DIRECT_CHAT_BY_ID_QUERY_MOCK, ...GROUP_CHAT_BY_ID_QUERY_MOCK, - ...MESSAGE_SENT_TO_DIRECT_CHAT_MOCK, - ...MESSAGE_SENT_TO_GROUP_CHAT_MOCK, + ...MESSAGE_SENT_TO_CHAT_MOCK, + ...CHAT_BY_ID_QUERY_MOCK, + ...CHATS_LIST_MOCK, + ...SEND_MESSAGE_TO_CHAT_MOCK, ]; const link2 = new StaticMockLink(mocks, true); render(