Files
WechatExplorer/tests/unit/settings-navigation.test.ts
T
电摇小子 5acfa14475 feat: 增加windows发送能力
抽离功能到设置页面
抽离文字转语音功能
2026-08-31 02:44:24 +08:00

25 lines
878 B
TypeScript

import { describe, expect, it } from 'vitest'
import {
SETTINGS_CATEGORY_LABELS,
SETTINGS_NAVIGATION
} from '../../src/renderer/src/features/settings/model/settingsNavigation'
describe('settings navigation', () => {
it('places text-to-speech under intelligent capabilities', () => {
const intelligent = SETTINGS_NAVIGATION.find((group) => group.label === '智能能力')
expect(intelligent?.items.map((item) => item.id)).toEqual([
'wechat-send',
'voice-recognition',
'text-to-speech',
'ai-model'
])
})
it('temporarily hides storage and export from visible navigation', () => {
expect(SETTINGS_NAVIGATION.flatMap((group) => group.items)).not.toEqual(
expect.arrayContaining([{ id: 'storage-export', label: '存储与导出' }])
)
expect(SETTINGS_CATEGORY_LABELS['storage-export']).toBe('存储与导出')
})
})