mirror of
https://github.com/philippdieter/zsh-auto-notify.git
synced 2026-05-05 15:42:47 +00:00
Add basic tests
This commit is contained in:
14
tests/test_auto_notify.zunit
Normal file
14
tests/test_auto_notify.zunit
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env zunit
|
||||
|
||||
@setup {
|
||||
load "../auto-notify.plugin.zsh"
|
||||
}
|
||||
|
||||
@test 'version exported' {
|
||||
assert "$AUTO_NOTIFY_VERSION" is_not_empty
|
||||
}
|
||||
|
||||
@test 'hook functions are loaded by default' {
|
||||
assert '_auto_notify_track' in $preexec_functions
|
||||
assert '_auto_notify_send' in $precmd_functions
|
||||
}
|
||||
Reference in New Issue
Block a user