aboutsummaryrefslogtreecommitdiff
path: root/src/config/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/model.rs')
-rw-r--r--src/config/model.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/config/model.rs b/src/config/model.rs
index a576418b..a8485fb0 100644
--- a/src/config/model.rs
+++ b/src/config/model.rs
@@ -9,6 +9,7 @@ pub enum ToastDelivery {
Off,
Herdr,
Terminal,
+ System,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize, Serialize, Default)]
@@ -299,6 +300,16 @@ delivery = "terminal"
}
#[test]
+ fn toast_config_parses_system_delivery() {
+ let toml = r#"
+[ui.toast]
+delivery = "system"
+"#;
+ let config: Config = toml::from_str(toml).unwrap();
+ assert_eq!(config.ui.toast.delivery, ToastDelivery::System);
+ }
+
+ #[test]
fn toast_config_legacy_enabled_true_maps_to_herdr() {
let toml = r#"
[ui.toast]