@@ -16,7 +16,6 @@ import { buildSlo } from '../../data/slo/slo';
1616import { useCapabilities } from '../../hooks/slo/use_capabilities' ;
1717import { useCreateSlo } from '../../hooks/slo/use_create_slo' ;
1818import { useFetchApmSuggestions } from '../../hooks/slo/use_fetch_apm_suggestions' ;
19- import { useFetchIndexPatternFields } from '../../hooks/slo/use_fetch_index_pattern_fields' ;
2019import { useFetchSloDetails } from '../../hooks/slo/use_fetch_slo_details' ;
2120import { useUpdateSlo } from '../../hooks/slo/use_update_slo' ;
2221import { useFetchDataViews } from '../../hooks/use_fetch_data_views' ;
@@ -43,7 +42,6 @@ jest.mock('../../hooks/slo/use_create_slo');
4342jest . mock ( '../../hooks/slo/use_update_slo' ) ;
4443jest . mock ( '../../hooks/slo/use_fetch_apm_suggestions' ) ;
4544jest . mock ( '../../hooks/slo/use_capabilities' ) ;
46- jest . mock ( '../../hooks/slo/use_fetch_index_pattern_fields' ) ;
4745
4846const mockUseKibanaReturnValue = kibanaStartMock . startContract ( ) ;
4947
@@ -58,7 +56,6 @@ const useFetchSloMock = useFetchSloDetails as jest.Mock;
5856const useCreateSloMock = useCreateSlo as jest . Mock ;
5957const useUpdateSloMock = useUpdateSlo as jest . Mock ;
6058const useFetchApmSuggestionsMock = useFetchApmSuggestions as jest . Mock ;
61- const useFetchIndexPatternFieldsMock = useFetchIndexPatternFields as jest . Mock ;
6259const useCapabilitiesMock = useCapabilities as jest . Mock ;
6360
6461const mockAddSuccess = jest . fn ( ) ;
@@ -159,13 +156,6 @@ describe('SLO Edit Page', () => {
159156 isLoading : false ,
160157 data : [ 'some-index' , 'index-2' ] ,
161158 } ) ;
162- useFetchIndexPatternFieldsMock . mockReturnValue ( {
163- isLoading : false ,
164- data : [
165- { name : 'field' , type : 'date' , aggregatable : false , searchable : false } ,
166- { name : 'field_text' , type : 'text' , aggregatable : true , searchable : true } ,
167- ] ,
168- } ) ;
169159
170160 useCreateSloMock . mockReturnValue ( {
171161 isLoading : false ,
0 commit comments