diff options
| author | danix <danix@danix.xyz> | 2026-06-11 09:59:30 +0200 |
|---|---|---|
| committer | danix <danix@danix.xyz> | 2026-06-11 09:59:30 +0200 |
| commit | dea3f129f3b834f367abfe477de342b9f0c1e620 (patch) | |
| tree | 7baba71793f778bc57e63822586cd897fdba15c5 /tests/wallp.bats | |
| parent | 7d1005a3ebadbb073b68ec91cc92d3b43cd2f9a1 (diff) | |
| download | wallp-dea3f129f3b834f367abfe477de342b9f0c1e620.tar.gz wallp-dea3f129f3b834f367abfe477de342b9f0c1e620.zip | |
feat: wpaper symlink + theme application
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'tests/wallp.bats')
| -rw-r--r-- | tests/wallp.bats | 14 |
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" +} |
