test: strengthen safety-critical coverage

This commit is contained in:
NuklearRabbit
2026-07-29 19:40:27 +02:00
parent 0ed202ec95
commit c826561c77
11 changed files with 613 additions and 5 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ class ConfigStore {
})]))
: {},
deploymentStates: source.deploymentStates && typeof source.deploymentStates === 'object' ? source.deploymentStates : {},
favorites: uniqueStrings(source.favorites).map((item) => item.toLowerCase()),
favorites: [...new Set(uniqueStrings(source.favorites).map((item) => item.toLowerCase()))],
updates: { ...DEFAULT_CONFIG.updates, ...(source.updates || {}) },
servers: Array.isArray(source.servers) ? source.servers.filter((item) => item && typeof item === 'object') : [],
preferences: { ...DEFAULT_CONFIG.preferences, ...(source.preferences || {}) },