forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Expensify#54734 from mkzie2/mkzie2-issue/54621
Fix: invite/remove room member action displays incorrectly in thread header
- Loading branch information
Showing
2 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -312,6 +312,25 @@ describe('ReportUtils', () => { | |
|
||
expect(ReportUtils.getReportName(threadOfSubmittedReportAction, policy, submittedParentReportAction)).toBe('submitted $1.69'); | ||
}); | ||
|
||
test('Invited/Removed Room Member Action', () => { | ||
const threadOfRemovedRoomMemberAction = { | ||
...LHNTestUtils.getFakeReport(), | ||
type: CONST.REPORT.TYPE.CHAT, | ||
chatType: CONST.REPORT.CHAT_TYPE.POLICY_ROOM, | ||
parentReportID: '101', | ||
parentReportActionID: '102', | ||
policyID: policy.id, | ||
}; | ||
const removedParentReportAction = { | ||
actionName: CONST.REPORT.ACTIONS.TYPE.ROOM_CHANGE_LOG.REMOVE_FROM_ROOM, | ||
originalMessage: { | ||
targetAccountIDs: [1], | ||
}, | ||
} as ReportAction; | ||
|
||
expect(ReportUtils.getReportName(threadOfRemovedRoomMemberAction, policy, removedParentReportAction)).toBe('removed [email protected]'); | ||
}); | ||
}); | ||
}); | ||
|
||
|