Skip to content

Commit 938fac5

Browse files
authored
Merge pull request Expensify#76582 from Expensify/mollfpr-fix-ts-on-ReportUtilsTest
[NoQA] Fix failing test and ts check using deprecated getReportName instead
2 parents 92c9780 + c94fda8 commit 938fac5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/ReportUtilsTest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ import {
6767
getReasonAndReportActionThatRequiresAttention,
6868
getReportActionActorAccountID,
6969
getReportIDFromLink,
70+
getReportName as getReportNameDeprecated,
7071
getReportOrDraftReport,
7172
getReportStatusTranslation,
7273
getReportURLForCurrentContext,
@@ -1263,7 +1264,7 @@ describe('ReportUtils', () => {
12631264
} as ReportAction;
12641265

12651266
// eslint-disable-next-line @typescript-eslint/no-deprecated
1266-
const reportName = getReportName(transactionThread, undefined, unreportedTransactionAction);
1267+
const reportName = getReportNameDeprecated(transactionThread, undefined, unreportedTransactionAction);
12671268

12681269
// Should NOT contain HTML tags
12691270
expect(reportName).not.toContain('<a href');

0 commit comments

Comments
 (0)