Skip to content

Commit b686515

Browse files
committed
test/xterm: adopt newly revamped setup()
1 parent a36a4c4 commit b686515

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

test/plugins/xterm.plugin.bats

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
#!/usr/bin/env bats
1+
# shellcheck shell=bats
22

3-
load ../test_helper
4-
load ../test_helper_libs
3+
load "${MAIN_BASH_IT_DIR?}/test/test_helper.bash"
54

6-
load ../../plugins/available/xterm.plugin
7-
8-
function local_setup {
9-
setup_test_fixture
10-
11-
# Copy the test fixture to the Bash-it folder
12-
if _command_exists rsync; then
13-
rsync -a "$BASH_IT/test/fixtures/plugin/xterm/" "$BASH_IT/"
14-
else
15-
find "$BASH_IT/test/fixtures/plugin/xterm" \
16-
-mindepth 1 -maxdepth 1 \
17-
-exec cp -r {} "$BASH_IT/" \;
18-
fi
5+
function local_setup_file() {
6+
setup_libs "helpers"
7+
load "${BASH_IT?}/plugins/available/xterm.plugin.bash"
198
}
209

2110
@test "plugins xterm: shorten command output" {

0 commit comments

Comments
 (0)