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
|
||||
|
@ -33,7 +33,7 @@ EOF
|
|||
|
||||
# check if left side match
|
||||
_status_left_expected="#[bg=#665c54,fg=#bdae93] #S #[bg=#3c3836,fg=#665c54,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=#3c3836,fg=#ebdbb2"
|
||||
_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