[UII] Fix unifiedSearch mock in SearchBar jest test (#192211)

## Summary

Resolves #181510. Fixes missing method in the mocked `unifiedSearch`
dependency that was causing flaky test failures.
This commit is contained in:
Jen Huang 2024-09-05 23:42:47 -07:00 committed by GitHub
parent 33c181e496
commit 24e1b67027
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,6 +114,7 @@ jest.mock('../hooks', () => {
},
},
]),
hasQuerySuggestions: jest.fn().mockReturnValue(true),
},
ui: {
IndexPatternSelect: jest.fn(),