import { ListItemSchema } from '.' ; import { DATE_NOW , ELASTIC_USER , LIST_ID , LIST_ITEM_ID , META , TIE_BREAKER , TYPE , USER , VALUE , } from '../../constants/index.mock' ; export const getListItemResponseMock = ( ) : ListItemSchema => ( { _version : undefined , created_at : DATE_NOW , created_by : USER , deserializer : undefined , id : LIST_ITEM_ID , list_id : LIST_ID , meta : META , serializer : undefined , tie_breaker_id : TIE_BREAKER , type : TYPE , updated_at : DATE_NOW , updated_by : USER , value : VALUE , } ) ; /**
 * This is useful for end to end tests where we remove the auto generated parts for comparisons
 * such as created_at, updated_at, and id.
 */ export const getListItemResponseMockWithoutAutoGeneratedValues = ( ) : Partial < ListItemSchema > => ( { created_by : ELASTIC_USER , list_id : LIST_ID , type : TYPE , updated_by : ELASTIC_USER , value : VALUE , } ) ;