import { IEventLogService } from './types' ; import { eventLoggerMock } from './event_logger.mock' ; const createEventLogServiceMock = ( ) => { const mock = { isLoggingEntries : jest . fn ( ) , isIndexingEntries : jest . fn ( ) , registerProviderActions : jest . fn ( ) , isProviderActionRegistered : jest . fn ( ) , getProviderActions : jest . fn ( ) , registerSavedObjectProvider : jest . fn ( ) , getLogger : jest . fn ( ) . mockReturnValue ( eventLoggerMock . create ( ) ) , getIndexPattern : jest . fn ( ) , isEsContextReady : jest . fn ( ) . mockResolvedValue ( true ) , } ; return mock ; } ; export const eventLogServiceMock = { create : createEventLogServiceMock , } ;