diff --git a/components/menu/__tests__/__snapshots__/demo.test.js.snap b/components/menu/__tests__/__snapshots__/demo.test.js.snap index 749bff0369..1c46305637 100644 --- a/components/menu/__tests__/__snapshots__/demo.test.js.snap +++ b/components/menu/__tests__/__snapshots__/demo.test.js.snap @@ -33,9 +33,7 @@ exports[`renders ./components/menu/demo/horizontal.md correctly 1`] = ` aria-haspopup="true" class="ant-menu-submenu-title" > - + diff --git a/components/menu/__tests__/index.test.js b/components/menu/__tests__/index.test.js index e937f0a6da..a2ea7fcfb6 100644 --- a/components/menu/__tests__/index.test.js +++ b/components/menu/__tests__/index.test.js @@ -85,7 +85,6 @@ describe('Menu', () => { wrapper.update(); expect(wrapper.find('.ant-menu-sub').hostNodes().at(0).hasClass('ant-menu-hidden')).toBe(true); wrapper.setProps({ openKeys: ['1'] }); - wrapper.update(); expect(wrapper.find('.ant-menu-sub').hostNodes().at(0).hasClass('ant-menu-hidden')).not.toBe(true); }); @@ -104,7 +103,6 @@ describe('Menu', () => { wrapper.update(); expect(wrapper.find('.ant-menu-sub').hostNodes().at(0).hasClass('ant-menu-hidden')).toBe(true); wrapper.setProps({ openKeys: ['1'] }); - wrapper.update(); expect(wrapper.find('.ant-menu-sub').hostNodes().at(0).hasClass('ant-menu-hidden')).not.toBe(true); }); @@ -123,7 +121,6 @@ describe('Menu', () => { wrapper.update(); expect(wrapper.find('.ant-menu-sub').hostNodes().at(0).hasClass('ant-menu-hidden')).toBe(true); wrapper.setProps({ openKeys: ['1'] }); - wrapper.update(); expect(wrapper.find('.ant-menu-sub').hostNodes().at(0).hasClass('ant-menu-hidden')).not.toBe(true); });