import React from 'react'; import { mount } from 'enzyme'; import Tree from '../index'; const { TreeNode } = Tree; describe('Tree', () => { it('icon and switcherIcon of Tree with showLine should render correctly', () => { const wrapper = mount( , ); expect(wrapper.render()).toMatchSnapshot(); }); });