test/battery: adopt newly revamped `setup()`

pull/2031/head
John D Pell 2022-01-31 11:08:53 -08:00 committed by John D Pell
parent beac9c430a
commit 6e2e0af7f9
1 changed files with 6 additions and 4 deletions

10
test/plugins/battery.plugin.bats 100755 → 100644
View File

@ -1,9 +1,11 @@
#!/usr/bin/env bats
# shellcheck shell=bats
load ../test_helper
load ../test_helper_libs
load "${MAIN_BASH_IT_DIR?}/test/test_helper.bash"
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
# the name of the function that was passed in as an argument to `setup_command_exists`.