webpack/assets/javascripts/react_app/components/SearchBar/SearchBar.test.js
Function get
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get: async (url, header, params) => {
if (url === 'model/auto_complete_search') {
if (!params?.search) {
return { data: mockModelsEmptyAutocomplete };
}