-
Notifications
You must be signed in to change notification settings - Fork 3k
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 #34872 from koko57/refactor/34411-lhn-previews-ref…
…actor Refactor/34411 lhn previews refactor
- Loading branch information
Showing
3 changed files
with
47 additions
and
73 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
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 |
---|---|---|
|
@@ -56,6 +56,14 @@ describe('Sidebar', () => { | |
stateNum: CONST.REPORT.STATE_NUM.APPROVED, | ||
}; | ||
|
||
const action = { | ||
...LHNTestUtils.getFakeReportAction('[email protected]', 3, true), | ||
actionName: 'CLOSED', | ||
originalMessage: { | ||
reason: CONST.REPORT.ARCHIVE_REASON.DEFAULT, | ||
}, | ||
}; | ||
|
||
// Given the user is in all betas | ||
const betas = [CONST.BETAS.DEFAULT_ROOMS]; | ||
LHNTestUtils.getDefaultRenderedSidebarLinks('0'); | ||
|
@@ -69,6 +77,7 @@ describe('Sidebar', () => { | |
[ONYXKEYS.PERSONAL_DETAILS_LIST]: LHNTestUtils.fakePersonalDetails, | ||
[ONYXKEYS.IS_LOADING_APP]: false, | ||
[`${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`]: report, | ||
[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.reportID}`]: {[action.reportActionId]: action}, | ||
}), | ||
) | ||
.then(() => { | ||
|