Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kqualters-elastic committed Feb 7, 2022
1 parent 39805d0 commit 407e506
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ const props = {
};

describe('use investigate in timeline hook', () => {
let coreHttp: ReturnType<typeof coreMock.createStart>['http'];
let mockSendAlertToTimeline: jest.SpyInstance<Promise<void>, [SendAlertToTimelineActionProps]>;

beforeEach(() => {
const coreStartMock = coreMock.createStart();
coreHttp = coreStartMock.http;
(KibanaServices.get as jest.Mock).mockReturnValue(coreStartMock);
mockSendAlertToTimeline = jest.spyOn(actions, 'sendAlertToTimelineAction');
(useKibana as jest.Mock).mockReturnValue({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/
import React from 'react';
import { fireEvent, render } from '@testing-library/react';
import { render } from '@testing-library/react';
import { EventDetailsFooter } from './footer';
import '../../../../common/mock/match_media';
import { TestProviders } from '../../../../common/mock';
Expand Down Expand Up @@ -103,11 +103,8 @@ const defaultProps = {
};

describe('event details footer component', () => {
let coreHttp: ReturnType<typeof coreMock.createStart>['http'];

beforeEach(() => {
const coreStartMock = coreMock.createStart();
coreHttp = coreStartMock.http;
(KibanaServices.get as jest.Mock).mockReturnValue(coreStartMock);
(useKibana as jest.Mock).mockReturnValue({
services: {
Expand Down

0 comments on commit 407e506

Please sign in to comment.