import * as React from 'react' ; import TestRenderer from 'react-test-renderer' ; import { WebView } from '../../hostComponents' ; describe ( 'WebView' , ( ) => { it ( 'render correctly' , ( ) => { const testRenderer = TestRenderer . create ( < WebView src = "https://url.com" / > ) ; expect ( testRenderer . toJSON ( ) ) . toMatchSnapshot ( ) ; } ) ; } ) ;