From ac5abbc8a87573d0cbec055f45b5b8e45a1a9135 Mon Sep 17 00:00:00 2001 From: Ilya Oleshko Date: Thu, 23 Jan 2020 09:59:10 +0300 Subject: [PATCH] Web: Components: ComboBox: Removed useless tests --- .../context-menu/context-menu.test.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/web/ASC.Web.Components/src/components/context-menu/context-menu.test.js b/web/ASC.Web.Components/src/components/context-menu/context-menu.test.js index 8045c06f05..3d5de6f08b 100644 --- a/web/ASC.Web.Components/src/components/context-menu/context-menu.test.js +++ b/web/ASC.Web.Components/src/components/context-menu/context-menu.test.js @@ -31,14 +31,6 @@ describe('', () => { expect(wrapper.find(ContextMenu).state('visible')).toEqual(false); }); - it('simulate handleClick() to close context menu', () => { - const wrapper = mount(); - const instance = wrapper.instance(); - - instance.handleClick(new Event('click', { target: null })); - expect(wrapper.state('visible')).toEqual(false); - }); - it('render with options', () => { const options = [ { label: 'test' }, @@ -53,15 +45,6 @@ describe('', () => { expect(wrapper.props().options).toEqual(options); }); - it('simulate handleContextMenu() to close context menu', () => { - const wrapper = mount(); - const instance = wrapper.instance(); - - instance.handleContextMenu(); - - expect(wrapper.state('visible')).toEqual(true); - }); - it('simulate handleContextMenu(e) to close context menu', () => { const wrapper = mount(); const instance = wrapper.instance();