From db4d26e59110ccc800d08c7e54289c2ded4003b4 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Mon, 24 Nov 2025 22:06:46 +0100 Subject: [PATCH] test: add flatpak_slack --- src/lib.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 859e5ae..9ebc3b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -515,6 +515,19 @@ mod test { )); } + #[test] + fn flatpak_slack() { + let home = std::env::home_dir().unwrap(); + + assert_eq!( + lookup("com.slack.Slack").find(), + Some(home.join( + ".local/share/flatpak/exports/share/icons/hicolor/scalable/apps/com.slack.Slack.svg" + )), + "Is the Slack flatpak installed locally?" + ); + } + #[test] #[cfg(feature = "local_tests")] fn theme_lookup() {