import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks' ; import { CreateListOptions } from '../lists' ; import { DATE_NOW , DESCRIPTION , IMMUTABLE , LIST_ID , LIST_INDEX , META , NAME , TIE_BREAKER , TYPE , USER , VERSION , } from '../../../common/constants.mock' ; export const getCreateListOptionsMock = ( ) : CreateListOptions => ( { dateNow : DATE_NOW , description : DESCRIPTION , deserializer : undefined , esClient : elasticsearchClientMock . createScopedClusterClient ( ) . asCurrentUser , id : LIST_ID , immutable : IMMUTABLE , listIndex : LIST_INDEX , meta : META , name : NAME , serializer : undefined , tieBreaker : TIE_BREAKER , type : TYPE , user : USER , version : VERSION , } ) ;