diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-02-04 03:49:43 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-02-04 03:49:43 +0200 |
commit | 6b15c71f8376a08b2e4ef05c183993664446247a (patch) | |
tree | 1bb2bd4f38f475dba98b4a835136ba3c1d95fea1 /ui/src/components | |
parent | 7d6526dedec3ab0614b8d1e5af38e6b08609795f (diff) |
Don't run test_escape_str without $DISPLAY set
Diffstat (limited to 'ui/src/components')
-rw-r--r-- | ui/src/components/notifications.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/components/notifications.rs b/ui/src/components/notifications.rs index e05646ba..bdc186bb 100644 --- a/ui/src/components/notifications.rs +++ b/ui/src/components/notifications.rs @@ -132,6 +132,10 @@ mod tests { #[test] fn test_escape_str() { + if std::env::var("DISPLAY").is_err() { + return; + } + let title: &str = "& > Title τίτλος"; let body: &str = "& > Body σώμα"; notify_rust::Notification::new() |