import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks' ; import { UpdateListItemOptions } from '../items' ; import { DATE_NOW , LIST_ITEM_ID , LIST_ITEM_INDEX , META , USER , VALUE , } from '../../../common/constants.mock' ; export const getUpdateListItemOptionsMock = ( ) : UpdateListItemOptions => ( { _version : undefined , dateNow : DATE_NOW , esClient : elasticsearchClientMock . createScopedClusterClient ( ) . asCurrentUser , id : LIST_ITEM_ID , listItemIndex : LIST_ITEM_INDEX , meta : META , user : USER , value : VALUE , } ) ;