mirror of
https://github.com/philippdieter/zsh-auto-notify.git
synced 2025-10-13 03:58:44 +00:00
Fix uname during tests
This commit is contained in:
parent
d40a07369f
commit
2bfb93573b
@ -7,6 +7,10 @@
|
||||
echo "Notification: $@"
|
||||
}
|
||||
|
||||
function uname {
|
||||
echo "Linux"
|
||||
}
|
||||
|
||||
# Mock date function to return a frozen timestamp
|
||||
function date {
|
||||
if [[ "$1" == +"%s" ]]; then
|
||||
@ -58,7 +62,7 @@
|
||||
done
|
||||
}
|
||||
|
||||
@test 'auto-notify-send sends notification' {
|
||||
@test 'auto-notify-send sends notification on Linux' {
|
||||
AUTO_COMMAND="f bar -r"
|
||||
AUTO_COMMAND_FULL="foo bar -r"
|
||||
AUTO_COMMAND_START=11080
|
||||
|
Loading…
x
Reference in New Issue
Block a user