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