refactor: improve test
This commit is contained in:
parent
dd1c215631
commit
e631a41278
11 changed files with 42 additions and 44 deletions
|
@ -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
|
||||
|
@ -34,7 +34,7 @@ EOF
|
|||
|
||||
# check if left side match
|
||||
_status_left_expected="#[bg=colour241,fg=colour248] #S #[bg=colour237,fg=colour241,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
|
||||
|
@ -42,7 +42,7 @@ EOF
|
|||
fi
|
||||
# check if status is not transparent
|
||||
_status_style_expected="bg=default,fg=colour223"
|
||||
_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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue