Skip to content

Commit 442121f

Browse files
committed
fix tests
1 parent d12b946 commit 442121f

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

tests/unit/DebugUtilsTest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,10 +1183,11 @@ describe('DebugUtils', () => {
11831183
},
11841184
[ONYXKEYS.SESSION]: {
11851185
accountID: 12345,
1186+
email: RORY_EMAIL,
11861187
},
11871188
});
11881189
// eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style
1189-
const {reportAction} = DebugUtils.getReasonAndReportActionForGBRInLHNRow(MOCK_REPORTS[`${ONYXKEYS.COLLECTION.REPORT}1`] as Report, RORY_EMAIL, RORY_ACCOUNT_ID) ?? {};
1190+
const {reportAction} = DebugUtils.getReasonAndReportActionForGBRInLHNRow(MOCK_REPORTS[`${ONYXKEYS.COLLECTION.REPORT}1`] as Report, RORY_EMAIL, 12345) ?? {};
11901191
expect(reportAction).toMatchObject(MOCK_REPORT_ACTIONS['1']);
11911192
});
11921193
it('returns undefined report action when report has no GBR', () => {

tests/unit/Search/SearchUIUtilsTest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,8 +2509,8 @@ describe('SearchUIUtils', () => {
25092509
SearchUIUtils.getSections({
25102510
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
25112511
data: searchResults.data,
2512-
currentAccountID: 20745,
2513-
currentUserEmail: '',
2512+
currentAccountID: adminAccountID,
2513+
currentUserEmail: adminEmail,
25142514
translate: translateLocal,
25152515
formatPhoneNumber,
25162516
bankAccountList: {},
@@ -2601,8 +2601,8 @@ describe('SearchUIUtils', () => {
26012601
SearchUIUtils.getSections({
26022602
type: CONST.SEARCH.DATA_TYPES.EXPENSE_REPORT,
26032603
data: searchResults.data,
2604-
currentAccountID: 2074551,
2605-
currentUserEmail: '',
2604+
currentAccountID: adminAccountID,
2605+
currentUserEmail: adminEmail,
26062606
translate: translateLocal,
26072607
formatPhoneNumber,
26082608
bankAccountList: {},

0 commit comments

Comments
 (0)