refactor: dry duplicated method

This commit is contained in:
Maciej Sypien 2024-09-22 22:11:21 +02:00
parent e33cccf5c6
commit fa42a2e465
No known key found for this signature in database
GPG key ID: 10BC01EDA6827DC8
10 changed files with 15 additions and 9 deletions

View file

@ -41,7 +41,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=colour237,fg=colour223"
_status_style_current=$(tmux show-option -gqv status-style)
_status_style_current=$(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

View file

@ -42,7 +42,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=default,fg=colour223"
_status_style_current=$(tmux show-option -gqv status-style)
_status_style_current=$(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

View file

@ -41,7 +41,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=#3c3836,fg=#ebdbb2"
_status_style_current=$(tmux show-option -gqv status-style)
_status_style_current=$(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

View file

@ -42,7 +42,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=default,fg=#ebdbb2"
_status_style_current=$(tmux show-option -gqv status-style)
_status_style_current=$(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

View file

@ -41,7 +41,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=colour252,fg=colour239"
_status_style_current=$(tmux show-option -gqv status-style)
_status_style_current=$(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

View file

@ -42,7 +42,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=default,fg=colour239"
_status_style_current=$(tmux show-option -gqv status-style)
_status_style_current=$(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

View file

@ -41,7 +41,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=#ebdbb2,fg=#3c3836"
_status_style_current=$(tmux show-option -gqv status-style)
_status_style_current=$(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

View file

@ -42,7 +42,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=default,fg=#3c3836"
_status_style_current=$(tmux show-option -gqv status-style)
_status_style_current=$(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

View file

@ -44,7 +44,7 @@ EOF
fi
# check if status is not transparent
_status_style_expected="bg=colour237,fg=colour223"
_status_style_current=$(tmux show-option -gqv status-style)
_status_style_current=$(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