Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TattdCodeMonkey committed Oct 24, 2024
1 parent 08634d2 commit 3b462d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
*/

import { mockKibanaValues } from '../../__mocks__/kea_logic';

import type { ChromeNavLink } from '@kbn/core-chrome-browser';

import '../../__mocks__/react_router';

jest.mock('../react_router_helpers/link_events', () => ({
Expand Down Expand Up @@ -38,7 +41,7 @@ describe('generateSideNavItems', () => {
title: 'Web crawlers',
url: '/app/enterprise_search/content/crawlers',
},
};
} as unknown as Record<string, ChromeNavLink | undefined>;
beforeEach(() => {
jest.clearAllMocks();
mockKibanaValues.history.location.pathname = '/';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
export { letBrowserHandleEvent } from './link_events';
export type { CreateHrefOptions } from './create_href';
export { createHref } from './create_href';
export type { ReactRouterProps } from './generate_react_router_props';
export { generateReactRouterProps } from './generate_react_router_props';
export {
EuiLinkTo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const mockKibanaProps: KibanaLogicProps = {
elasticsearch_host: 'https://your_deployment_url',
},
getChromeStyle$: jest.fn().mockReturnValue(of('classic')),
getNavLinks: jest.fn().mockReturnValue([]),
guidedOnboarding: {},
history: mockHistory,
indexMappingComponent: () => {
Expand Down

0 comments on commit 3b462d7

Please sign in to comment.