Maintenance: Desktop view - Remove navigation group testing file and add keep.
Approved-by: Florian Liebe <fl@zammad.com> Co-authored-by: Florian Liebe <fl@zammad.com>
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
// Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
||||
|
||||
import {
|
||||
navigationGroups,
|
||||
type NavigationGroup,
|
||||
} from '#desktop/components/PageNavigation/navigationGroups.ts'
|
||||
import type { NavigationGroup } from '#desktop/components/PageNavigation/navigationGroups.ts'
|
||||
import {
|
||||
buildNavigationItems,
|
||||
type PageRoute,
|
||||
@@ -24,14 +21,6 @@ const buildRoute = (name: string, order?: number, navigationGroup?: string): Pag
|
||||
|
||||
const tools: NavigationGroup = { key: 'tools', title: 'Tools', icon: 'wrench', order: 9000 }
|
||||
|
||||
describe('navigationGroups', () => {
|
||||
it('ships the shared "tools" group so addons do not have to define it', () => {
|
||||
expect(navigationGroups).toContainEqual(
|
||||
expect.objectContaining({ key: 'tools', title: 'Tools' }),
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
describe('buildNavigationItems', () => {
|
||||
it('combines routes of independent contributors into one group', () => {
|
||||
const items = buildNavigationItems(
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
// Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
||||
|
||||
import type { NavigationGroup } from '#desktop/components/PageNavigation/navigationGroups.ts'
|
||||
|
||||
// Counterpart of the legacy `#tools` navigation bar parent, which addons like
|
||||
// TimeTracking and ProjectBaller nest their entries under.
|
||||
const group: NavigationGroup = {
|
||||
key: 'tools',
|
||||
title: __('Tools'),
|
||||
icon: 'wrench',
|
||||
order: 90000,
|
||||
}
|
||||
|
||||
export default group
|
||||
Reference in New Issue
Block a user