From 36ed7932d6852dd22bc2b4cbd0af1d64d09d62fa Mon Sep 17 00:00:00 2001 From: abbyhu2000 Date: Fri, 16 Aug 2024 23:06:00 +0000 Subject: [PATCH] fix unit test Signed-off-by: abbyhu2000 --- .../public/ui/query_string_input/query_string_input.test.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/data/public/ui/query_string_input/query_string_input.test.tsx b/src/plugins/data/public/ui/query_string_input/query_string_input.test.tsx index dfa5d57411d0..392071f0d10a 100644 --- a/src/plugins/data/public/ui/query_string_input/query_string_input.test.tsx +++ b/src/plugins/data/public/ui/query_string_input/query_string_input.test.tsx @@ -179,10 +179,7 @@ describe('QueryStringInput', () => { ); component.find(QueryLanguageSwitcher).props().onSelectLanguage('lucene'); - expect(mockStorage.set).toHaveBeenCalledWith( - 'opensearchDashboards.userQueryLanguage', - 'lucene' - ); + expect(mockStorage.set).toHaveBeenCalledWith('userQueryLanguage', 'lucene'); expect(mockCallback).toHaveBeenCalledWith({ query: '', language: 'lucene' }); });