From 0bc6b57fa3fd6c4d92cb9395af7cec2c4683b2ef Mon Sep 17 00:00:00 2001 From: guifu Date: Mon, 7 May 2018 14:23:32 +0800 Subject: [PATCH] chore: fix test --- tests/MenuItem.spec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/MenuItem.spec.js b/tests/MenuItem.spec.js index a66e643c..1fb54e1e 100644 --- a/tests/MenuItem.spec.js +++ b/tests/MenuItem.spec.js @@ -106,10 +106,8 @@ describe('MenuItem', () => { expect(wrapper.render()).toMatchSnapshot(); wrapper.find('MenuItem').at(0).simulate('click'); expect(onClick).toHaveBeenCalledTimes(1); - wrapper.find('SubMenu').at(0).simulate('click'); - expect(onClick).toHaveBeenCalledTimes(2); wrapper.find('MenuItemGroup').at(0).simulate('click'); - expect(onClick).toHaveBeenCalledTimes(3); + expect(onClick).toHaveBeenCalledTimes(2); }); });