import React from 'react'; import { mount } from 'enzyme'; import Dropdown from '..'; import Menu from '../../menu'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; describe('Dropdown', () => { mountTest(() => ( }> )); rtlTest(() => ( }> )); it('overlay is function and has custom transitionName', () => { const wrapper = mount(
menu
} transitionName="move-up" visible>
, ); expect(wrapper).toMatchRenderedSnapshot(); }); it('overlay is string', () => { const wrapper = mount( , ); expect(wrapper).toMatchRenderedSnapshot(); }); });