import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks' ; import { UpdateListOptions } from '../lists' ; import { DATE_NOW , DESCRIPTION , LIST_ID , LIST_INDEX , META , NAME , USER , VERSION , } from '../../../common/constants.mock' ; export const getUpdateListOptionsMock = ( ) : UpdateListOptions => ( { _version : undefined , dateNow : DATE_NOW , description : DESCRIPTION , esClient : elasticsearchClientMock . createScopedClusterClient ( ) . asCurrentUser , id : LIST_ID , listIndex : LIST_INDEX , meta : META , name : NAME , user : USER , version : VERSION , } ) ;