From d43fdac005116a3c08b2c912ae0cd1309008cfe1 Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Mon, 29 Jul 2024 18:39:06 +0800 Subject: [PATCH] feat: remove useless change Signed-off-by: SuZhou-Joe --- .../public/chrome/ui/header/collapsible_nav_group_enabled.tsx | 4 +--- .../ui/header/collapsible_nav_group_enabled_top.test.tsx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx index 9226bf537d43..c0d2a87635ed 100644 --- a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx +++ b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx @@ -338,9 +338,7 @@ export function CollapsibleNavGroupEnabled({ navLinks={navLinks} navigateToApp={navigateToApp} logos={logos} - onClickBack={() => { - setCurrentNavGroup(undefined); - }} + onClickBack={() => setCurrentNavGroup(undefined)} currentNavGroup={currentNavGroup} shouldShrinkNavigation={!isNavOpen} onClickShrink={closeNav} diff --git a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.test.tsx b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.test.tsx index 9e9ecbd9c61b..168f0ede150f 100644 --- a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.test.tsx +++ b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.test.tsx @@ -7,12 +7,11 @@ import React from 'react'; import { render } from '@testing-library/react'; import { ChromeNavLink } from '../../nav_links'; import { ChromeRegistrationNavLink } from '../../nav_group'; -import { coreMock, httpServiceMock } from '../../../mocks'; +import { httpServiceMock } from '../../../mocks'; import { getLogos } from '../../../../common'; import { CollapsibleNavTop } from './collapsible_nav_group_enabled_top'; const mockBasePath = httpServiceMock.createSetupContract({ basePath: '/test' }).basePath; -const coreStartMock = coreMock.createStart(); describe('', () => { const getMockedNavLink = ( @@ -67,7 +66,6 @@ describe('', () => { logos: getLogos({}, mockBasePath.serverBasePath), shouldShrinkNavigation: false, visibleUseCases: [], - capabilities: coreStartMock.application.capabilities, }; }; it('should render home icon', async () => {