We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
setup()
1 parent a36a4c4 commit b686515Copy full SHA for b686515
test/plugins/xterm.plugin.bats
@@ -1,21 +1,10 @@
1
-#!/usr/bin/env bats
+# shellcheck shell=bats
2
3
-load ../test_helper
4
-load ../test_helper_libs
+load "${MAIN_BASH_IT_DIR?}/test/test_helper.bash"
5
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
+function local_setup_file() {
+ setup_libs "helpers"
+ load "${BASH_IT?}/plugins/available/xterm.plugin.bash"
19
}
20
21
@test "plugins xterm: shorten command output" {
0 commit comments