import { BehaviorSubject } from 'rxjs' ; import { ElasticsearchConnectionStatus } from '../common' ; export const elasticsearchServiceMock = { createSetup : ( ) => ( { connectionStatus$ : new BehaviorSubject < ElasticsearchConnectionStatus > ( ElasticsearchConnectionStatus . Configured ) , enroll : jest . fn ( ) , authenticate : jest . fn ( ) , ping : jest . fn ( ) , } ) , } ;