import { getListItemResponseMock } from '../../../common/schemas/response/list_item_schema.mock' ; import { LIST_INDEX , LIST_ITEM_INDEX } from '../../../common/constants.mock' ; import { getListClientMock } from './list_client.mock' ; describe ( 'list_client' , ( ) => { describe ( 'Mock client sanity checks (not exhaustive tests against it)' , ( ) => { test ( 'it returns the get list index as expected' , ( ) => { const mock = getListClientMock ( ) ; expect ( mock . getListIndex ( ) ) . toEqual ( LIST_INDEX ) ; } ) ; test ( 'it returns the get list item index as expected' , ( ) => { const mock = getListClientMock ( ) ; expect ( mock . getListItemIndex ( ) ) . toEqual ( LIST_ITEM_INDEX ) ; } ) ; test ( 'it returns a mock list item' , async ( ) => { const mock = getListClientMock ( ) ; const listItem = await mock . getListItem ( { id : '123' } ) ; expect ( listItem ) . toEqual ( getListItemResponseMock ( ) ) ; } ) ; } ) ; } ) ;