import React from 'react'; import { mountWithContexts } from '../enzymeHelpers'; import BrandLogo from '../../src/components/BrandLogo'; let logoWrapper; let brandLogoElem; let svgElem; const findChildren = () => { brandLogoElem = logoWrapper.find('BrandLogo'); svgElem = logoWrapper.find('svg'); }; describe('', () => { test('initially renders without crashing', () => { logoWrapper = mountWithContexts( ); findChildren(); expect(logoWrapper.length).toBe(1); expect(brandLogoElem.length).toBe(1); expect(svgElem.length).toBe(1); }); });