From dea3f129f3b834f367abfe477de342b9f0c1e620 Mon Sep 17 00:00:00 2001 From: danix Date: Thu, 11 Jun 2026 09:59:30 +0200 Subject: feat: wpaper symlink + theme application Co-Authored-By: Claude Opus 4.8 --- tests/wallp.bats | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') 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" +} -- cgit v1.2.3