From 416d9350c61428a8969cb58901874e5c39a60a2b Mon Sep 17 00:00:00 2001 From: Artem Makushov Date: Wed, 27 Mar 2024 12:34:46 +0100 Subject: [PATCH] remove type and fix group chat test --- src/pages/NewChatPage.tsx | 2 -- tests/actions/IOUTest.ts | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/NewChatPage.tsx b/src/pages/NewChatPage.tsx index 59727945967d..9c2d47f684ab 100755 --- a/src/pages/NewChatPage.tsx +++ b/src/pages/NewChatPage.tsx @@ -333,5 +333,3 @@ export default withOnyx({ initWithStoredValues: false, }, })(NewChatPage); - -export type {SelectedParticipant}; diff --git a/tests/actions/IOUTest.ts b/tests/actions/IOUTest.ts index 33cdefb749ec..0a7be4fb98fb 100644 --- a/tests/actions/IOUTest.ts +++ b/tests/actions/IOUTest.ts @@ -1142,7 +1142,8 @@ describe('actions/IOU', () => { groupChat = Object.values(allReports ?? {}).find( (report) => - report?.type === CONST.REPORT.TYPE.CHAT && isEqual(report.participantAccountIDs, [CARLOS_ACCOUNT_ID, JULES_ACCOUNT_ID, VIT_ACCOUNT_ID]), + report?.type === CONST.REPORT.TYPE.CHAT && + isEqual(report.participantAccountIDs, [CARLOS_ACCOUNT_ID, JULES_ACCOUNT_ID, VIT_ACCOUNT_ID, RORY_ACCOUNT_ID]), ) ?? null; expect(isEmptyObject(groupChat)).toBe(false); expect(groupChat?.pendingFields).toStrictEqual({createChat: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD});