Teste de configurações conhece o campo updates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
daa12ba117
commit
9d1a8c727f
1 file changed
+9
-2
@@ -142,12 +142,19 @@ fn configuracoes_antigas_ganham_os_valores_padrao_novos() {
|
||||
ui_lang: Some("en".into()),
|
||||
notify: false,
|
||||
maps: true,
|
||||
updates: false,
|
||||
})
|
||||
.unwrap();
|
||||
let s = settings::load();
|
||||
assert_eq!(
|
||||
(s.theme.as_str(), s.lang.as_str(), s.notify, s.maps),
|
||||
("light", "en", false, true)
|
||||
(
|
||||
s.theme.as_str(),
|
||||
s.lang.as_str(),
|
||||
s.notify,
|
||||
s.maps,
|
||||
s.updates
|
||||
),
|
||||
("light", "en", false, true, false)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user