mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Remove assertions about behavior on invalid settings file
This commit is contained in:
parent
e32233c826
commit
21ada545b0
1 changed files with 0 additions and 31 deletions
|
@ -830,37 +830,6 @@ mod tests {
|
|||
store.register_setting::<UserSettings>(cx);
|
||||
store.register_setting::<TurboSetting>(cx);
|
||||
store.register_setting::<MultiKeySettings>(cx);
|
||||
|
||||
// error - missing required field in default settings
|
||||
store
|
||||
.set_default_settings(
|
||||
r#"{
|
||||
"user": {
|
||||
"name": "John Doe",
|
||||
"age": 30,
|
||||
"staff": false
|
||||
}
|
||||
}"#,
|
||||
cx,
|
||||
)
|
||||
.unwrap_err();
|
||||
|
||||
// error - type error in default settings
|
||||
store
|
||||
.set_default_settings(
|
||||
r#"{
|
||||
"turbo": "the-wrong-type",
|
||||
"user": {
|
||||
"name": "John Doe",
|
||||
"age": 30,
|
||||
"staff": false
|
||||
}
|
||||
}"#,
|
||||
cx,
|
||||
)
|
||||
.unwrap_err();
|
||||
|
||||
// valid default settings.
|
||||
store
|
||||
.set_default_settings(
|
||||
r#"{
|
||||
|
|
Loading…
Reference in a new issue