import { docLinksServiceMock } from '../../../../../../../src/core/public/mocks' ; import { docLinks } from './' ; describe ( 'DocLinks' , ( ) => { it ( 'setDocLinks' , ( ) => { const links = { DOC_LINK_VERSION : docLinksServiceMock . createStartContract ( ) . DOC_LINK_VERSION , ELASTIC_WEBSITE_URL : docLinksServiceMock . createStartContract ( ) . ELASTIC_WEBSITE_URL , links : docLinksServiceMock . createStartContract ( ) . links , } ; docLinks . setDocLinks ( links as any ) ; expect ( docLinks . appSearchApis ) . toEqual ( links . links . appSearch . apiRef ) ; expect ( docLinks . cloudIndexManagement ) . toEqual ( links . links . cloud . indexManagement ) ; expect ( docLinks . enterpriseSearchConfig ) . toEqual ( links . links . enterpriseSearch . configuration ) ; expect ( docLinks . workplaceSearchZendesk ) . toEqual ( links . links . workplaceSearch . zendesk ) ; } ) ; } ) ;