mirror of
https://github.com/rememberber/MooTool.git
synced 2026-08-30 18:02:12 +08:00
[next]**设置,功能导航中的显示最近使用功能需要默认关闭**
This commit is contained in:
@@ -6,6 +6,7 @@ it('uses the MooTool Next visual defaults', () => {
|
||||
expect(defaultAppSettings.appearance.interfaceStyle).toBe('modern')
|
||||
expect(defaultAppSettings.appearance.fontSize).toBe(13)
|
||||
expect(defaultAppSettings.layout.navigationStyle).toBe('classic')
|
||||
expect(defaultAppSettings.layout.showRecent).toBe(false)
|
||||
expect(defaultAppSettings.editor.quickNoteFontSize).toBe(14)
|
||||
expect(defaultAppSettings.editor.jsonFontName).toBe('ui-monospace')
|
||||
expect(defaultAppSettings.editor.quickNoteFontName).toBe('ui-monospace')
|
||||
@@ -22,9 +23,14 @@ describe('mergeSettings', () => {
|
||||
expect(settings.general.language).toBe('en-US')
|
||||
expect(settings.general.trayEnabled).toBe(defaultAppSettings.general.trayEnabled)
|
||||
expect(settings.layout.compactNavigation).toBe(true)
|
||||
expect(settings.layout.showRecent).toBe(false)
|
||||
expect(settings.appearance).toEqual(defaultAppSettings.appearance)
|
||||
})
|
||||
|
||||
it('preserves an explicit recent-tools preference', () => {
|
||||
expect(mergeSettings(defaultAppSettings, { layout: { showRecent: true } }).layout.showRecent).toBe(true)
|
||||
})
|
||||
|
||||
it('normalizes numeric settings at their supported boundaries', () => {
|
||||
const settings = mergeSettings(defaultAppSettings, {
|
||||
appearance: { fontSize: 200 },
|
||||
|
||||
@@ -139,7 +139,7 @@ export const defaultAppSettings: AppSettings = {
|
||||
unifiedBackground: true
|
||||
},
|
||||
layout: {
|
||||
showRecent: true,
|
||||
showRecent: false,
|
||||
compactNavigation: false,
|
||||
showSeparators: true,
|
||||
hideNavigationTitles: false,
|
||||
|
||||
Reference in New Issue
Block a user