From b843368b49d1f41013972035128ccd11fd42d9a6 Mon Sep 17 00:00:00 2001 From: shahid Date: Wed, 5 Mar 2025 03:36:35 +0530 Subject: [PATCH] Fix TypeScript type checking in SidebarUtils getOptionData test --- tests/unit/SidebarUtilsTest.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/unit/SidebarUtilsTest.ts b/tests/unit/SidebarUtilsTest.ts index 44a3bb59fb8fe..d3c0d6d7ee615 100644 --- a/tests/unit/SidebarUtilsTest.ts +++ b/tests/unit/SidebarUtilsTest.ts @@ -197,11 +197,11 @@ describe('SidebarUtils', () => { }); it('returns isPinned true only when report.isPinned is true', () => { - const MOCK_REPORT_PINNED: Report = { + const MOCK_REPORT_PINNED: OnyxEntry = { reportID: '1', isPinned: true, }; - const MOCK_REPORT_UNPINNED: Report = { + const MOCK_REPORT_UNPINNED: OnyxEntry = { reportID: '2', isPinned: false, }; @@ -215,8 +215,8 @@ describe('SidebarUtils', () => { policy: undefined, parentReportAction: undefined, hasViolations: false, + oneTransactionThreadReport: undefined, }); - const optionDataUnpinned = SidebarUtils.getOptionData({ report: MOCK_REPORT_UNPINNED, reportNameValuePairs: {}, @@ -226,6 +226,7 @@ describe('SidebarUtils', () => { policy: undefined, parentReportAction: undefined, hasViolations: false, + oneTransactionThreadReport: undefined, }); expect(optionDataPinned?.isPinned).toBe(true);