feat: release OpsXShell 2.1.0 native Tauri edition
This commit is contained in:
1 parent
e9a0d21758
commit
a3dba0c6ed
311 files changed
+31748
-14897
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { normalizeAppSettings } from '../../src/stores/settingsStore'
|
||||
|
||||
describe('settings migration', () => {
|
||||
it('drops obsolete legacy settings while preserving supported values', () => {
|
||||
const settings = normalizeAppSettings({
|
||||
theme: 'light',
|
||||
timeout: 45,
|
||||
language: 'en-US',
|
||||
showNotifications: true,
|
||||
encryptPasswords: false,
|
||||
lockOnSleep: true,
|
||||
})
|
||||
|
||||
expect(settings.theme).toBe('light')
|
||||
expect(settings.timeout).toBe(45)
|
||||
expect(settings).not.toHaveProperty('language')
|
||||
expect(settings).not.toHaveProperty('showNotifications')
|
||||
expect(settings).not.toHaveProperty('encryptPasswords')
|
||||
expect(settings).not.toHaveProperty('lockOnSleep')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user