import '../../__mocks__/engine_logic.mock' ; import React from 'react' ; import { Route , Switch } from 'react-router-dom' ; import { shallow } from 'enzyme' ; import { AnalyticsRouter } from './' ; describe ( 'AnalyticsRouter' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < AnalyticsRouter />); expect ( wrapper . find ( Switch ) ) . toHaveLength ( 1 ) ; expect ( wrapper . find ( Route ) ) . toHaveLength ( 9 ) ; } ) ; } ) ;