Skip to content

Commit

Permalink
Remove all cases related code from timelines (elastic#127003)
Browse files Browse the repository at this point in the history
  • Loading branch information
academo authored and lucasfcosta committed Mar 8, 2022
1 parent d2df9b5 commit ed049d8
Show file tree
Hide file tree
Showing 32 changed files with 2 additions and 1,420 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,4 @@ export const mockTimelines = {
onBlur: jest.fn(),
onKeyDown: jest.fn(),
}),
getAddToCasePopover: jest
.fn()
.mockReturnValue(<div data-test-subj="add-to-case-action">{'Add to case'}</div>),
getAddToCaseAction: jest.fn(),
getAddToExistingCaseButton: jest.fn().mockReturnValue(
<div key="add-to-existing-case-action" data-test-subj="add-to-existing-case-action">
{'Add to existing case'}
</div>
),
getAddToNewCaseButton: jest.fn().mockReturnValue(
<div key="add-to-new-case-action" data-test-subj="add-to-new-case-action">
{'Add to new case'}
</div>
),
};
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ jest.mock('../../../../../common/lib/kibana', () => ({
useGetUserCasesPermissions: jest.fn(),
}));

jest.mock(
'../../../../../../../timelines/public/components/actions/timeline/cases/add_to_case_action',
() => {
return {
AddToCasePopover: () => {
return <div data-test-subj="add-to-case-action">{'Add to case'}</div>;
},
};
}
);

describe('EventColumnView', () => {
useIsExperimentalFeatureEnabledMock.mockReturnValue(false);
(useShallowEqualSelector as jest.Mock).mockReturnValue(TimelineType.default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ jest.mock('../../../../common/lib/kibana', () => {
onBlur: jest.fn(),
onKeyDown: jest.fn(),
}),
getAddToCasePopover: jest
.fn()
.mockReturnValue(<div data-test-subj="add-to-case-action">{'Add to case'}</div>),
getAddToCaseAction: jest.fn(),
},
},
}),
Expand Down
8 changes: 0 additions & 8 deletions x-pack/plugins/timelines/public/components/actions/index.ts

This file was deleted.

This file was deleted.

Loading

0 comments on commit ed049d8

Please sign in to comment.