import { loggingSystemMock } from 'src/core/server/mocks' ; import { ConfigType } from '../' ; export const mockLogger = loggingSystemMock . createLogger ( ) . get ( ) ; export const mockRequestHandler = { createRequest : jest . fn ( ( ) => ( ) => { } ) , hasValidData ( data ) { return ( this . createRequest as jest . Mock ) . mock . calls [ 0 ] [ 0 ] . hasValidData ( data ) ; } , } ; export const mockConfig = { host : 'http://localhost:3002' , accessCheckTimeout : 5000 , accessCheckTimeoutWarning : 300 , ssl : { } , } as ConfigType ; /**
 * This is useful for tests that don't use either config or log,
 * but should still pass them in to pass Typescript definitions
 */ export const mockDependencies = { config : mockConfig , log : mockLogger , enterpriseSearchRequestHandler : mockRequestHandler as any , } ;