Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <[email protected]>
  • Loading branch information
abbyhu2000 committed Aug 16, 2024
1 parent 54b8fb2 commit 36ed793
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
});

Expand Down

0 comments on commit 36ed793

Please sign in to comment.