import React from 'react' ; import { shallow } from 'enzyme' ; import { InternalSchemaType } from '../../../shared/schema/types' ; import { ResultField } from './result_field' ; describe ( 'ResultField' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < ResultField field = "title" raw = "The Catcher in the Rye" snippet = "The <em>Catcher</em> in the Rye" type = { InternalSchemaType . String } / > ) ; expect ( wrapper . find ( 'ResultFieldValue' ) . exists ( ) ) . toBe ( true ) ; } ) ; } ) ;