Skip to content

Commit

Permalink
tslint and remove invalid test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Aug 23, 2023
1 parent 43e7774 commit d71119f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export const useTimelineEventsHandler = ({
filterStatus,
}: UseTimelineEventsProps): [boolean, TimelineArgs, TimelineEventsSearchHandler] => {
const dispatch = useDispatch();
const { startTracking } = useApmTracking(id);
const refetch = useRef<Refetch>(noop);
const abortCtrl = useRef(new AbortController());
const searchSubscription$ = useRef(new Subscription());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,6 @@ describe('useMatrixHistogram', () => {
expect(mockEndTracking).toHaveBeenCalledWith('success');
});

it('should end tracking error when the partial request is invalid', () => {
(useKibana().services.data.search.search as jest.Mock).mockReturnValueOnce({
subscribe: ({ next }: { next: Function }) => next(null),
});

renderHook(useMatrixHistogram, {
initialProps: props,
wrapper: TestProviders,
});

expect(mockEndTracking).toHaveBeenCalledWith('invalid');
});

it('should end tracking error when the request fails', () => {
(useKibana().services.data.search.search as jest.Mock).mockReturnValueOnce({
subscribe: ({ error }: { error: Function }) => error('some error'),
Expand Down

0 comments on commit d71119f

Please sign in to comment.