test/cmd-returned-notify: adopt newly revamped setup()
This commit is contained in:
10
test/plugins/cmd-returned-notify.plugin.bats
Executable file → Normal file
10
test/plugins/cmd-returned-notify.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/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
|
||||||
|
|||||||
Reference in New Issue
Block a user