import React from 'react'; import { mount } from 'enzyme'; import Collapse from '..'; import mountTest from '../../../tests/shared/mountTest'; describe('Collapse', () => { mountTest(Collapse); it('should support remove expandIcon', () => { const wrapper = mount( null}> , ); expect(wrapper.render()).toMatchSnapshot(); }); it('should render extra node of panel', () => { const wrapper = mount( action} /> action} /> , ); expect(wrapper.render()).toMatchSnapshot(); }); });