fix(NA): eslint on observability_solution/ux files

This commit is contained in:
Tiago Costa 2024-04-17 20:55:19 +01:00
parent b66be1f69b
commit 20b55e203b
No known key found for this signature in database
GPG key ID: BAECC2D04A04C6EA
2 changed files with 2 additions and 7 deletions

View file

@ -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';

View file

@ -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();