import { setMockValues } from '../../../../../../__mocks__/kea_logic' ; import React from 'react' ; import { shallow } from 'enzyme' ; import { EntSearchLogStream } from '../../../../../../shared/log_stream' ; import { DataPanel } from '../../../../data_panel' ; import { RejectedCurationsHistoryPanel } from './rejected_curations_history_panel' ; describe ( 'RejectedCurationsHistoryPanel' , ( ) => { beforeEach ( ( ) => { jest . clearAllMocks ( ) ; setMockValues ( { engineName : 'some-engine' } ) ; } ) ; it ( 'renders' , ( ) => { const wrapper = shallow ( < RejectedCurationsHistoryPanel />); expect ( wrapper . is ( DataPanel ) ) . toBe ( true ) ; expect ( wrapper . find ( EntSearchLogStream ) . prop ( 'query' ) ) . toEqual ( 'event.kind: event and event.dataset: search-relevance-suggestions and appsearch.adaptive_relevance.engine: some-engine and event.action: curation_suggestion and appsearch.adaptive_relevance.suggestion.new_status: rejected' ) ; } ) ; } ) ;