aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wallp.bats14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/wallp.bats b/tests/wallp.bats
index f8ea2d7..11c319d 100644
--- a/tests/wallp.bats
+++ b/tests/wallp.bats
@@ -179,3 +179,17 @@ teardown() {
apply_output V "$HOME/v.png"
[ "$(cat "$HOME/.cache/wallp/H.pid")" = "99999" ]
}
+
+@test "update_wpaper symlinks to H image" {
+ : > "$HOME/h.png"; mkdir -p "$HOME/.config/wallp"
+ echo "$HOME/h.png" > "$HOME/.config/wallp/wall_h"
+ update_wpaper
+ [ "$(readlink "$HOME/.cache/wal/wpaper")" = "$HOME/h.png" ]
+}
+
+@test "apply_theme runs wal and persists theme" {
+ apply_theme "mytheme"
+ [ "$(cat "$HOME/.config/wallp/theme")" = "mytheme" ]
+ grep -q "wal --backend colorz -nq --theme mytheme -o $HOME/bin/wal.sh" "$HOME/calls.log"
+ grep -q "notify-send" "$HOME/calls.log"
+}