Skip to content

Commit 5b4455f

Browse files
committed
fixes
1 parent 7713808 commit 5b4455f

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

tests/perf-test/SidebarUtils.perf-test.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,39 @@ describe('SidebarUtils', () => {
9494

9595
test('[SidebarUtils] getReportsToDisplayInLHN on 15k reports for default priorityMode', async () => {
9696
await waitForBatchedUpdates();
97-
await measureFunction(() => SidebarUtils.getReportsToDisplayInLHN(currentReportId, allReports, mockedBetas, CONST.PRIORITY_MODE.DEFAULT, {}, transactionViolations, {}, false));
97+
await measureFunction(() =>
98+
SidebarUtils.getReportsToDisplayInLHN({
99+
currentReportId,
100+
reports: allReports,
101+
betas: mockedBetas,
102+
priorityMode: CONST.PRIORITY_MODE.DEFAULT,
103+
draftComments: {},
104+
transactionViolations,
105+
transactions: {},
106+
isOffline: false,
107+
currentUserLogin: CURRENT_USER_LOGIN,
108+
currentUserAccountID: 1,
109+
reportNameValuePairs: {},
110+
}),
111+
);
98112
});
99113

100114
test('[SidebarUtils] getReportsToDisplayInLHN on 15k reports for GSD priorityMode', async () => {
101115
await waitForBatchedUpdates();
102-
await measureFunction(() => SidebarUtils.getReportsToDisplayInLHN(currentReportId, allReports, mockedBetas, CONST.PRIORITY_MODE.GSD, {}, transactionViolations, {}, false));
116+
await measureFunction(() =>
117+
SidebarUtils.getReportsToDisplayInLHN({
118+
currentReportId,
119+
reports: allReports,
120+
betas: mockedBetas,
121+
priorityMode: CONST.PRIORITY_MODE.GSD,
122+
draftComments: {},
123+
transactionViolations,
124+
transactions: {},
125+
isOffline: false,
126+
currentUserLogin: CURRENT_USER_LOGIN,
127+
currentUserAccountID: 1,
128+
reportNameValuePairs: {},
129+
}),
130+
);
103131
});
104132
});

0 commit comments

Comments
 (0)