workaround

pull/2032/head
John D Pell 2022-02-14 20:29:26 -08:00 committed by John D Pell
parent 5524e82ad5
commit 683b9f3d99
5 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,10 @@ function local_setup_file() {
# don't load any libraries as the tests here test the *whole* kit
}
function local_setup() {
: "${PROMPT_COMMAND:=}" "${BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE:=}"
}
@test "bash-it: verify that the test fixture is available" {
assert_file_exist "${BASH_IT?}/aliases/available/a.aliases.bash"
assert_file_exist "${BASH_IT?}/aliases/available/b.aliases.bash"

View File

@ -36,6 +36,7 @@ function __check_completion() {
# Word index of the last word
COMP_CWORD=$((${#COMP_WORDS[@]} - 1))
COMP_WORDS+=('') # arg
# Run the Bash-it completion function
_bash-it

View File

@ -7,6 +7,7 @@ function local_setup_file() {
}
function local_setup() {
: "${BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE:=}"
# Copy the test fixture to the Bash-it folder
cp -RP "${BASH_IT?}/test/fixtures/bash_it"/* "${BASH_IT?}/"
}

View File

@ -6,6 +6,7 @@ load ../test_helper
function local_setup {
setup_test_fixture
export __bp_enable_subshells=yas
export HISTCONTROL=""
}
@test "vendor preexec: __bp_install_after_session_init() without existing" {

View File

@ -4,6 +4,8 @@ load "${MAIN_BASH_IT_DIR?}/test/test_helper.bash"
function local_setup_file() {
setup_libs "helpers"
# shellcheck disable=SC2034
BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=""
}
@test "_bash-it-component-item-is-enabled() - for a disabled item" {