import { render , shallow } from 'enzyme' ; import React from 'react' ; import { MapToolTip } from './map_tooltip' ; describe ( 'Map Tooltip' , ( ) => { test ( 'it shallow renders' , ( ) => { const wrapper = shallow ( < MapToolTip />); expect ( wrapper ) . toMatchSnapshot ( ) ; } ) ; test ( 'it renders' , ( ) => { const wrapper = render ( < MapToolTip />); expect ( wrapper ) . toMatchSnapshot ( ) ; } ) ; } ) ;