From 21490037fe7a1e0f5fe266ac77df33775b3aa068 Mon Sep 17 00:00:00 2001 From: Pranita Fulsundar Date: Fri, 22 Aug 2025 19:22:53 +0530 Subject: [PATCH] fix Suggestions.test.tsx (#23058) (cherry picked from commit 7bf06c5ecd83efb233f093b61dd7fa6cfac7696d) --- .../ui/src/components/AppBar/Suggestions.test.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AppBar/Suggestions.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AppBar/Suggestions.test.tsx index a7293295a7a..c15612aa516 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/AppBar/Suggestions.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/AppBar/Suggestions.test.tsx @@ -65,13 +65,9 @@ Object.defineProperty(window, 'location', { writable: true, }); -const mockSearchQuery = searchQuery as jest.MockedFunction; -const mockUseTranslation = useTranslation as jest.MockedFunction< - typeof useTranslation ->; -const mockUseTourProvider = useTourProvider as jest.MockedFunction< - typeof useTourProvider ->; +const mockSearchQuery = searchQuery as jest.Mock; +const mockUseTranslation = useTranslation as jest.Mock; +const mockUseTourProvider = useTourProvider as jest.Mock; const defaultProps = { searchText: 'test',