refactor: improve test

This commit is contained in:
Maciej Sypien 2024-09-22 22:42:11 +02:00
parent dd1c215631
commit e631a41278
No known key found for this signature in database
GPG key ID: 10BC01EDA6827DC8
11 changed files with 42 additions and 44 deletions

View file

@ -3,7 +3,7 @@
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck disable=SC1091
source "${CURRENT_DIR}/../tmux_helpers.sh"
source "${CURRENT_DIR}/../test_helpers.sh"
main() {
helper_tearup_linux
@ -33,7 +33,7 @@ EOF
# check if left side match
_status_left_expected="#[bg=colour239,fg=colour223] #S #[bg=colour250,fg=colour239,nobold,noitalics,nounderscore]"
_status_left_current=$(tmux_get_statusleft)
_status_left_current=$(helper_tmux_get_statusleft)
if [[ "$_status_left_current" != "$_status_left_expected" ]]; then
helper_print_fail "status-left did not match" "$_status_left_current" "$_status_left_expected"
helper_teardown
@ -41,7 +41,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=colour250,fg=colour237"
_status_style_current=$(tmux_get_statusstyle)
_status_style_current=$(helper_tmux_get_statusstyle)
if [[ "$_status_style_current" != "$_status_style_expected" ]]; then
helper_print_fail "status-style did not match" "$_status_style_current" "$_status_style_expected"
helper_teardown