Skip to content

Commit

Permalink
fixing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Oct 20, 2020
1 parent 48d53c6 commit 4aadb91
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import {
fireEvent,
getByText,
queryByLabelText,
render,
} from '@testing-library/react';
import { fireEvent, getByText, queryByLabelText } from '@testing-library/react';
import { createMemoryHistory } from 'history';
import { CoreStart } from 'kibana/public';
import React from 'react';
Expand All @@ -20,7 +15,10 @@ import { UrlParamsProvider } from '../../../context/UrlParamsContext';
import { IUrlParams } from '../../../context/UrlParamsContext/types';
import * as useFetcherHook from '../../../hooks/useFetcher';
import * as useServiceTransactionTypesHook from '../../../hooks/useServiceTransactionTypes';
import { disableConsoleWarning } from '../../../utils/testHelpers';
import {
disableConsoleWarning,
renderWithTheme,
} from '../../../utils/testHelpers';
import { fromQuery } from '../../shared/Links/url_helpers';
import { TransactionOverview } from './';

Expand Down Expand Up @@ -54,7 +52,7 @@ function setup({

jest.spyOn(useFetcherHook, 'useFetcher').mockReturnValue({} as any);

return render(
return renderWithTheme(
<KibanaReactContext.Provider>
<MockApmPluginContextWrapper>
<Router history={history}>
Expand Down

0 comments on commit 4aadb91

Please sign in to comment.