theforeman/foreman

View on GitHub
webpack/assets/javascripts/react_app/components/SearchBar/SearchBar.test.js

Summary

Maintainability
A
1 hr
Test Coverage

Function get has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  get: async (url, header, params) => {
    if (url === 'model/auto_complete_search') {
      if (!params?.search) {
        return { data: mockModelsEmptyAutocomplete };
      }

    There are no issues that match your filters.

    Category
    Status