[new feature] Sidebar: add to and replace prop (#3696)

This commit is contained in:
neverland
2019-06-29 17:16:54 +08:00
committed by GitHub
parent 514e44e621
commit 531fa6681e
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { mount } from '../../../test/utils';
import Sidebar from '..';
import SidebarItem from '../../sidebar-item';
test('event', () => {
test('click event & change event', () => {
const onClick = jest.fn();
const onChange = jest.fn();
const wrapper = mount({