test/battery: adopt newly revamped setup()
This commit is contained in:
10
test/plugins/battery.plugin.bats
Executable file → Normal file
10
test/plugins/battery.plugin.bats
Executable file → Normal file
@@ -1,9 +1,11 @@
|
|||||||
#!/usr/bin/env bats
|
# shellcheck shell=bats
|
||||||
|
|
||||||
load ../test_helper
|
load "${MAIN_BASH_IT_DIR?}/test/test_helper.bash"
|
||||||
load ../test_helper_libs
|
|
||||||
|
|
||||||
load ../../plugins/available/battery.plugin
|
function local_setup_file() {
|
||||||
|
setup_libs "helpers"
|
||||||
|
load "${BASH_IT?}/plugins/available/battery.plugin.bash"
|
||||||
|
}
|
||||||
|
|
||||||
# Sets up the `_command_exists` function so that it only responds `true` if called with
|
# Sets up the `_command_exists` function so that it only responds `true` if called with
|
||||||
# the name of the function that was passed in as an argument to `setup_command_exists`.
|
# the name of the function that was passed in as an argument to `setup_command_exists`.
|
||||||
|
|||||||
Reference in New Issue
Block a user