mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
fix(NA): eslint on observability_solution/ux files
This commit is contained in:
parent
b66be1f69b
commit
20b55e203b
2 changed files with 2 additions and 7 deletions
|
@ -18,10 +18,7 @@ import { AppMountParameters, CoreStart, APP_WRAPPER_CLASS } from '@kbn/core/publ
|
|||
|
||||
import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render';
|
||||
import { KibanaThemeProvider } from '@kbn/react-kibana-context-theme';
|
||||
import {
|
||||
KibanaContextProvider,
|
||||
useDarkMode,
|
||||
} from '@kbn/kibana-react-plugin/public';
|
||||
import { KibanaContextProvider, useDarkMode } from '@kbn/kibana-react-plugin/public';
|
||||
|
||||
import { RedirectAppLinks } from '@kbn/shared-ux-link-redirect-app';
|
||||
|
||||
|
|
|
@ -18,9 +18,7 @@ import { UrlParamsProvider } from '../../../../context/url_params_context/url_pa
|
|||
|
||||
const core = coreMock.createStart();
|
||||
jest.spyOn(core.uiSettings, 'get').mockImplementation((_key: string) => true);
|
||||
jest
|
||||
.spyOn(core.uiSettings, 'get$')
|
||||
.mockImplementation((_key: string) => of(true));
|
||||
jest.spyOn(core.uiSettings, 'get$').mockImplementation((_key: string) => of(true));
|
||||
|
||||
export const render = (component: React.ReactNode, options: { customHistory: MemoryHistory }) => {
|
||||
const history = options?.customHistory ?? createMemoryHistory();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue