import { getListItemIndex } from './get_list_item_index' ; describe ( 'get_list_item_index' , ( ) => { beforeEach ( ( ) => { jest . clearAllMocks ( ) ; } ) ; afterEach ( ( ) => { jest . clearAllMocks ( ) ; } ) ; test ( 'Returns the list item index when there is a space' , async ( ) => { const listIndex = getListItemIndex ( { listsItemsIndexName : 'lists-items-index' , spaceId : 'test-space' , } ) ; expect ( listIndex ) . toEqual ( 'lists-items-index-test-space' ) ; } ) ; } ) ;