Add enable/disable functionality

This commit is contained in:
Michael Aquilina
2019-07-14 12:16:47 +01:00
parent 73b47b1383
commit bd83266ccf
3 changed files with 30 additions and 3 deletions

View File

@@ -26,6 +26,16 @@
assert '_auto_notify_send' in $precmd_functions
}
@test 'enable/disable auto-notify' {
disable_auto_notify
assert '_auto_notify_track' not_in $preexec_functions
assert '_auto_notify_send' not_in $precmd_functions
enable_auto_notify
assert '_auto_notify_track' in $preexec_functions
assert '_auto_notify_send' in $precmd_functions
}
@test 'auto-notify-send does not send notification for short task' {
AUTO_COMMAND="foo bar -r"
AUTO_COMMAND_START=11099