import { contentSources } from '../../../__mocks__/content_sources.mock' ; import React from 'react' ; import { shallow } from 'enzyme' ; import { TruncatedContent } from '../../../../shared/truncate' ; import { SourceIcon } from '../../../components/shared/source_icon' ; import { SourceOptionItem } from './source_option_item' ; describe ( 'SourceOptionItem' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < SourceOptionItem source = { contentSources [ 0 ] } / > ) ; expect ( wrapper . find ( TruncatedContent ) ) . toHaveLength ( 1 ) ; expect ( wrapper . find ( SourceIcon ) ) . toHaveLength ( 1 ) ; } ) ; } ) ;