test/cmd-returned-notify: adopt newly revamped setup()

This commit is contained in:
John D Pell
2022-01-31 11:09:02 -08:00
committed by John D Pell
parent 6e2e0af7f9
commit 4a9df8ec88

10
test/plugins/cmd-returned-notify.plugin.bats Executable file → Normal file
View 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/cmd-returned-notify.plugin function local_setup_file() {
setup_libs "preexec" #"command_duration"
load "${BASH_IT?}/plugins/available/cmd-returned-notify.plugin.bash"
}
@test "plugins cmd-returned-notify: notify after elapsed time" { @test "plugins cmd-returned-notify: notify after elapsed time" {
export NOTIFY_IF_COMMAND_RETURNS_AFTER=0 export NOTIFY_IF_COMMAND_RETURNS_AFTER=0