windows: Fix tests on Windows (#22616)
Release Notes: - N/A --------- Co-authored-by: Mikayla <mikayla.c.maki@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@ pub fn test_settings() -> String {
|
||||
crate::default_settings().as_ref(),
|
||||
)
|
||||
.unwrap();
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
util::merge_non_null_json_value_into(
|
||||
serde_json::json!({
|
||||
"ui_font_family": "Courier",
|
||||
@@ -26,6 +27,21 @@ pub fn test_settings() -> String {
|
||||
}),
|
||||
&mut value,
|
||||
);
|
||||
#[cfg(target_os = "windows")]
|
||||
util::merge_non_null_json_value_into(
|
||||
serde_json::json!({
|
||||
"ui_font_family": "Courier New",
|
||||
"ui_font_features": {},
|
||||
"ui_font_size": 14,
|
||||
"ui_font_fallback": [],
|
||||
"buffer_font_family": "Courier New",
|
||||
"buffer_font_features": {},
|
||||
"buffer_font_size": 14,
|
||||
"buffer_font_fallback": [],
|
||||
"theme": EMPTY_THEME_NAME,
|
||||
}),
|
||||
&mut value,
|
||||
);
|
||||
value.as_object_mut().unwrap().remove("languages");
|
||||
serde_json::to_string(&value).unwrap()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user