Skip to content

Commit 2f3579d

Browse files
Fix typecheck: pass chatType argument to createRandomReport
The createRandomReport function signature requires two arguments (index, chatType). Pass undefined as the chatType for the invoice report test data. Co-authored-by: Aimane Chnaif <aimane-chnaif@users.noreply.github.com>
1 parent 067f276 commit 2f3579d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/ReportUtilsTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9317,7 +9317,7 @@ describe('ReportUtils', () => {
93179317
// requires !isSettled, making this path currently unreachable. This test documents the
93189318
// current behavior and will catch regressions if the conditions are corrected.
93199319
const olderChildReport: Report = {
9320-
...createRandomReport(Number(olderChildReportID)),
9320+
...createRandomReport(Number(olderChildReportID), undefined),
93219321
reportID: olderChildReportID,
93229322
type: CONST.REPORT.TYPE.INVOICE,
93239323
policyID,
@@ -9326,7 +9326,7 @@ describe('ReportUtils', () => {
93269326
};
93279327

93289328
const newerChildReport: Report = {
9329-
...createRandomReport(Number(newerChildReportID)),
9329+
...createRandomReport(Number(newerChildReportID), undefined),
93309330
reportID: newerChildReportID,
93319331
type: CONST.REPORT.TYPE.INVOICE,
93329332
policyID,

0 commit comments

Comments
 (0)