import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks' ; import { CreateListItemOptions } from '../items' ; import { DATE_NOW , LIST_ID , LIST_ITEM_ID , LIST_ITEM_INDEX , META , TIE_BREAKER , TYPE , USER , } from '../../../common/constants.mock' ; export const getCreateListItemOptionsMock = ( ) : CreateListItemOptions => ( { dateNow : DATE_NOW , deserializer : undefined , esClient : elasticsearchClientMock . createScopedClusterClient ( ) . asCurrentUser , id : LIST_ITEM_ID , listId : LIST_ID , listItemIndex : LIST_ITEM_INDEX , meta : META , serializer : undefined , tieBreaker : TIE_BREAKER , type : TYPE , user : USER , value : '127.0.0.1' , } ) ;