From accf25414cac3021bbb228b32c55ba0df3c22e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Jasikowski?= Date: Wed, 10 Dec 2025 10:32:59 +0100 Subject: [PATCH] Fix mock typecheck --- tests/unit/Search/SearchContextTest.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/Search/SearchContextTest.tsx b/tests/unit/Search/SearchContextTest.tsx index 2d973768314d4..7763558224047 100644 --- a/tests/unit/Search/SearchContextTest.tsx +++ b/tests/unit/Search/SearchContextTest.tsx @@ -23,7 +23,7 @@ const mockSelectedTransaction: SelectedTransactionInfo = { ownerAccountID: 1, } as const; -const mockTransaction: TransactionListItemType = { +const mockTransaction = { accountID: 1, amount: 0, category: '', @@ -81,9 +81,9 @@ const mockTransaction: TransactionListItemType = { avatar: 'https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_15.png', displayName: 'Main Applause QA', }, -}; +} as TransactionListItemType; -const mockReport: TransactionReportGroupListItemType = { +const mockReport = { accountID: 1, chatReportID: '4735435600700077', chatType: undefined, @@ -121,7 +121,7 @@ const mockReport: TransactionReportGroupListItemType = { transactions: [mockTransaction], groupedBy: 'expense-report', keyForList: '515146912679679', -}; +} as TransactionReportGroupListItemType; mockTransaction.report = mockReport;