Skip to content

Commit

Permalink
remove type and fix group chat test
Browse files Browse the repository at this point in the history
  • Loading branch information
waterim committed Mar 27, 2024
1 parent 24cf044 commit 416d935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/pages/NewChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,5 +333,3 @@ export default withOnyx<NewChatPageProps, NewChatPageWithOnyxProps>({
initWithStoredValues: false,
},
})(NewChatPage);

export type {SelectedParticipant};
3 changes: 2 additions & 1 deletion tests/actions/IOUTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit 416d935

Please sign in to comment.