test/bash-it: adopt newly revamped setup()

This commit is contained in:
John D Pell
2022-02-03 21:38:32 -08:00
committed by John D Pell
parent de31a308f9
commit c837232643

View File

@@ -1,17 +1,16 @@
#!/usr/bin/env bats # shellcheck shell=bats
load ../test_helper load "${MAIN_BASH_IT_DIR?}/test/test_helper.bash"
load ../../lib/utilities
load ../../lib/helpers
load ../../completion/available/bash-it.completion
function local_setup { function local_setup_file() {
setup_test_fixture setup_libs "helpers"
load "${BASH_IT?}/completion/available/bash-it.completion.bash"
} }
@test "completion bash-it: ensure that the _bash-it function is available" { @test "completion bash-it: ensure that the _bash-it function is available" {
type -a _bash-it &> /dev/null run type -t _bash-it
assert_success assert_success
assert_output "function"
} }
function __check_completion () { function __check_completion () {