import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks' ; import { CreateListItemsBulkOptions } from '../items' ; import { DATE_NOW , LIST_ID , LIST_ITEM_INDEX , META , TIE_BREAKERS , TYPE , USER , VALUE , VALUE_2 , } from '../../../common/constants.mock' ; export const getCreateListItemBulkOptionsMock = ( ) : CreateListItemsBulkOptions => ( { dateNow : DATE_NOW , deserializer : undefined , esClient : elasticsearchClientMock . createScopedClusterClient ( ) . asCurrentUser , listId : LIST_ID , listItemIndex : LIST_ITEM_INDEX , meta : META , serializer : undefined , tieBreaker : TIE_BREAKERS , type : TYPE , user : USER , value : [ VALUE , VALUE_2 ] , } ) ;