Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Dec 30, 2020
1 parent dd593c2 commit 32eb0e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React from 'react';
import { shallow, ShallowWrapper, mount } from 'enzyme';
import { TimelineType } from '../../../../../common/types/timeline';
import { SortFieldTimeline, Direction } from '../../../../graphql/types';
import { SelectableTimeline, ORIGINAL_PAGE_SIZE, SearchProps } from './';
import { SelectableTimeline, ORIGINAL_PAGE_SIZE } from './';

const mockFetchAllTimeline = jest.fn();
jest.mock('../../../containers/all', () => {
Expand Down Expand Up @@ -40,9 +40,7 @@ describe('SelectableTimeline', () => {
});

test('render placeholder', () => {
const searchProps: SearchProps = wrapper
.find('[data-test-subj="selectable-input"]')
.prop('searchProps');
const searchProps = wrapper.find('[data-test-subj="selectable-input"]').prop('searchProps');
expect(searchProps.placeholder).toEqual('e.g. Timeline name or description');
});
});
Expand All @@ -58,9 +56,7 @@ describe('SelectableTimeline', () => {
});

test('render placeholder', () => {
const searchProps: SearchProps = wrapper
.find('[data-test-subj="selectable-input"]')
.prop('searchProps');
const searchProps = wrapper.find('[data-test-subj="selectable-input"]').prop('searchProps');
expect(searchProps.placeholder).toEqual('e.g. Timeline template name or description');
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,6 @@ const MyEuiFlexItem = styled(EuiFlexItem)`
white-space: nowrap;
`;

const MyEuiFlexGroup = styled(EuiFlexGroup)`
padding 0px 4px;
`;

// const EuiSelectableContainer = styled.div<{ isLoading: boolean }>`
// .euiSelectable {
// .euiFormControlLayout__childrenWrapper {
// display: flex;
// }
// ${({ isLoading }) => `${
// isLoading
// ? `
// .euiFormControlLayoutIcons {
// display: none;
// }
// .euiFormControlLayoutIcons.euiFormControlLayoutIcons--right {
// display: block;
// left: 12px;
// top: 12px;
// }`
// : ''
// }
// `}
// }
// `;

const StyledEuiFilterButton = styled(EuiFilterButton)`
border-top: 0;
border-bottom: 0;
Expand Down

0 comments on commit 32eb0e6

Please sign in to comment.