Skip to content

Commit 2c20b79

Browse files
committed
add tests
1 parent 539545e commit 2c20b79

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

apps/sim/components/settings/navigation.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
getOrganizationSettingsHref,
1212
getWorkspaceSettingsHref,
1313
isOrganizationSettingsSectionAvailable,
14+
ORGANIZATION_PLANE_UNIFIED_SECTIONS,
1415
ORGANIZATION_SETTINGS_ITEMS,
1516
ORGANIZATION_SETTINGS_PATH_ALIASES,
1617
parseSettingsPathSection,
@@ -109,6 +110,19 @@ describe('settings navigation boundaries', () => {
109110
expect([...workspaceIds].sort()).toEqual(WORKSPACE_SETTINGS_ITEMS.map(({ id }) => id).sort())
110111
})
111112

113+
it('derives the organization-plane unified sections from the registry', () => {
114+
expect([...ORGANIZATION_PLANE_UNIFIED_SECTIONS].sort()).toEqual([
115+
'access-control',
116+
'audit-logs',
117+
'billing',
118+
'data-drains',
119+
'data-retention',
120+
'organization',
121+
'sso',
122+
'whitelabeling',
123+
])
124+
})
125+
112126
it('shares labels, icons, and docs links across projections', () => {
113127
const unifiedSso = buildUnifiedSettingsNavigation().find(({ id }) => id === 'sso')
114128
const organizationSso = ORGANIZATION_SETTINGS_ITEMS.find(({ id }) => id === 'sso')

0 commit comments

Comments
 (0)