mirror of
https://github.com/philippdieter/zsh-auto-notify.git
synced 2026-05-05 15:42:47 +00:00
Format + add tests
This commit is contained in:
@@ -51,6 +51,18 @@
|
||||
}
|
||||
|
||||
@test 'auto-notify-send does not send notification for ignored commands' {
|
||||
for command in $AUTO_NOTIFY_IGNORE; do
|
||||
AUTO_COMMAND="somealias"
|
||||
AUTO_COMMAND_FULL="$command"
|
||||
AUTO_COMMAND_START=11000
|
||||
run _auto_notify_send
|
||||
|
||||
assert $state equals 0
|
||||
assert "$output" is_empty
|
||||
done
|
||||
}
|
||||
|
||||
@test 'auto-notify-send does not send notification for ignored commands with arguments' {
|
||||
for command in $AUTO_NOTIFY_IGNORE; do
|
||||
AUTO_COMMAND="somealias bar -r"
|
||||
AUTO_COMMAND_FULL="$command bar -r"
|
||||
|
||||
Reference in New Issue
Block a user