diff --git a/public/app/features/dashboard/specs/AddPanelPanel.test.tsx b/public/app/features/dashboard/specs/AddPanelPanel.test.tsx deleted file mode 100644 index 82171177edd..00000000000 --- a/public/app/features/dashboard/specs/AddPanelPanel.test.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import React from 'react'; -import { AddPanelPanel } from './../dashgrid/AddPanelPanel'; -import { PanelModel } from '../panel_model'; -import { shallow } from 'enzyme'; -import config from '../../../core/config'; -import { getPanelPlugin } from 'app/features/plugins/__mocks__/pluginMocks'; - -jest.mock('app/core/store', () => ({ - get: key => { - return null; - }, - delete: key => { - return null; - }, -})); - -describe('AddPanelPanel', () => { - let wrapper, dashboardMock, panel; - - beforeEach(() => { - config.panels = [ - getPanelPlugin({ id: 'singlestat', sort: 2 }), - getPanelPlugin({ id: 'hidden', sort: 100, hideFromList: true }), - getPanelPlugin({ id: 'graph', sort: 1 }), - getPanelPlugin({ id: 'alexander_zabbix', sort: 100 }), - getPanelPlugin({ id: 'piechart', sort: 100 }), - ]; - - dashboardMock = { toggleRow: jest.fn() }; - - panel = new PanelModel({ collapsed: false }); - wrapper = shallow(); - }); - - it('should filter', () => { - wrapper.find('input').simulate('change', { target: { value: 'p' } }); - - expect(wrapper.find('.add-panel__item').get(1).props.title).toBe('piechart'); - expect(wrapper.find('.add-panel__item').get(0).props.title).toBe('graph'); - }); -});