diff --git a/src/components/DashboardsBar/__tests__/ShowMoreButton.spec.js b/src/components/DashboardsBar/__tests__/ShowMoreButton.spec.js deleted file mode 100644 index 5907609ed..000000000 --- a/src/components/DashboardsBar/__tests__/ShowMoreButton.spec.js +++ /dev/null @@ -1,42 +0,0 @@ -import { fireEvent } from '@testing-library/dom' -import { render } from '@testing-library/react' -import React from 'react' -import ShowMoreButton from '../ShowMoreButton.js' - -describe('ShowMoreButton', () => { - it('renders correctly when at maxHeight', () => { - const { container } = render( - {}} - isMaxHeight={true} - classes={{ showMore: {} }} - /> - ) - expect(container).toMatchSnapshot() - }) - - it('renders correctly when not at maxHeight', () => { - const { container } = render( - {}} - isMaxHeight={false} - classes={{ showMore: {} }} - /> - ) - - expect(container).toMatchSnapshot() - }) - - it('triggers onClick when button clicked', () => { - const onClick = jest.fn() - const { getByLabelText } = render( - - ) - fireEvent.click(getByLabelText('Show more dashboards')) - expect(onClick).toHaveBeenCalled() - }) -}) diff --git a/src/components/DashboardsBar/__tests__/getRowsFromHeight.js b/src/components/DashboardsBar/__tests__/getRowsFromHeight.js deleted file mode 100644 index 71ef6396a..000000000 --- a/src/components/DashboardsBar/__tests__/getRowsFromHeight.js +++ /dev/null @@ -1,6 +0,0 @@ -import { getRowsFromHeight } from '../getRowsFromHeight.js' - -test('getRowsFromHeight returns an integer', () => { - const res = getRowsFromHeight(100) - expect(Number.isInteger(res)).toBeTruthy() -})