diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-17 11:57:09 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-17 11:57:09 -0400 |
| commit | 44a7151bbbceba398521ed1a723883ee59792873 (patch) | |
| tree | 69e227bca64eb20aae0455645b6c519284942884 /tests | |
| parent | Use webp for docs images (diff) | |
| download | tmux-toggle-term-44a7151bbbceba398521ed1a723883ee59792873.zip | |
Update directory structure
Diffstat (limited to '')
| -rw-r--r-- | tests/tests.sh (renamed from tests.sh) | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests.sh b/tests/tests.sh index ed883e3..99706dd 100644 --- a/tests.sh +++ b/tests/tests.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bats -load 'vendor/bats-support/load' -load 'vendor/bats-assert/load' +load '../vendor/bats-support/load' +load '../vendor/bats-assert/load' + +TOGGLE_TERM_SCRIPT_PATH="$BATS_TEST_DIRNAME/../scripts/toggle-term.sh" setup() { export TMUX_SOCKET="test$$" @@ -45,7 +47,7 @@ tmux_is_zoomed() { assert_equal "$(tmux_pane_count)" 1 assert_equal "$(tmux_active_panes)" '1' - run ./toggle-term.sh split + run "$TOGGLE_TERM_SCRIPT_PATH" split assert_success assert_equal "$(tmux_pane_count)" 2 @@ -56,9 +58,9 @@ tmux_is_zoomed() { assert_equal "$(tmux_pane_count)" 1 assert_equal "$(tmux_active_panes)" '1' - run ./toggle-term.sh split + run "$TOGGLE_TERM_SCRIPT_PATH" split assert_success - run ./toggle-term.sh split + run "$TOGGLE_TERM_SCRIPT_PATH" split assert_success assert_equal "$(tmux_pane_count)" 2 |